File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -2856,12 +2856,10 @@ ZEND_API void zend_mm_userinput_end(void)
28562856#endif
28572857}
28582858
2859- ZEND_API bool zend_mm_check_in_userinput (void )
2859+ ZEND_API void zend_mm_check_in_userinput (void )
28602860{
28612861#if ZEND_MM_HEAP_PROTECTION
2862- return AG (use_userinput_zone );
2863- #else
2864- return true;
2862+ ZEND_ASSERT (AG (use_userinput_zone ));
28652863#endif
28662864}
28672865
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ ZEND_API bool is_zend_mm(void);
225225ZEND_API bool is_zend_ptr (const void * ptr );
226226ZEND_API void zend_mm_userinput_begin (void );
227227ZEND_API void zend_mm_userinput_end (void );
228- ZEND_API bool zend_mm_check_in_userinput (void );
228+ ZEND_API void zend_mm_check_in_userinput (void );
229229
230230ZEND_API size_t zend_memory_usage (bool real_usage );
231231ZEND_API size_t zend_memory_peak_usage (bool real_usage );
Original file line number Diff line number Diff line change @@ -2017,7 +2017,9 @@ ZEND_API void zend_activate_auto_globals(void) /* {{{ */
20172017{
20182018 zend_auto_global * auto_global ;
20192019
2020- ZEND_ASSERT (zend_mm_check_in_userinput ());
2020+ #if ZEND_DEBUG
2021+ zend_mm_check_in_userinput ();
2022+ #endif
20212023
20222024 ZEND_HASH_MAP_FOREACH_PTR (CG (auto_globals ), auto_global ) {
20232025 if (auto_global -> jit ) {
Original file line number Diff line number Diff line change @@ -1840,7 +1840,9 @@ zend_result php_request_startup(void)
18401840{
18411841 zend_result retval = SUCCESS ;
18421842
1843- ZEND_ASSERT (zend_mm_check_in_userinput ());
1843+ #if ZEND_DEBUG
1844+ zend_mm_check_in_userinput ();
1845+ #endif
18441846
18451847 zend_interned_strings_activate ();
18461848
You can’t perform that action at this time.
0 commit comments