File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2810,17 +2810,21 @@ ZEND_API bool is_zend_ptr(const void *ptr)
28102810 }
28112811#endif
28122812
2813- if (AG (mm_heap )-> main_chunk ) {
2814- zend_mm_chunk * chunk = AG (mm_heap )-> main_chunk ;
2813+ zend_mm_zone * zone ;
2814+ ZEND_MM_ZONE_FOREACH (AG (mm_heap ), zone ) {
2815+ zend_mm_chunk * chunk = zone -> chunks ;
2816+ if (chunk == NULL ) {
2817+ continue ;
2818+ }
28152819
28162820 do {
28172821 if (ptr >= (void * )chunk
28182822 && ptr < (void * )((char * )chunk + ZEND_MM_CHUNK_SIZE )) {
28192823 return 1 ;
28202824 }
28212825 chunk = chunk -> next ;
2822- } while (chunk != AG ( mm_heap ) -> main_chunk );
2823- }
2826+ } while (chunk != zone -> chunks );
2827+ } ZEND_MM_ZONE_FOREACH_END ();
28242828
28252829 zend_mm_huge_list * block = AG (mm_heap )-> huge_list ;
28262830 while (block ) {
You can’t perform that action at this time.
0 commit comments