xref: /php-src/Zend/tests/gh14626.phpt (revision 1ff277de)
1--TEST--
2GH-14626: is_zend_ptr() may crash for non-zend ptrs when huge blocks exist
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7
8// Ensure there is at least one huge_block
9$str = str_repeat('a', 2*1024*1024);
10
11// Check that is_zend_ptr() does not crash
12zend_test_is_zend_ptr(0);
13zend_test_is_zend_ptr(1<<30);
14
15?>
16==DONE==
17--EXPECT--
18==DONE==
19