php-src/Zend/tests/bug43128.phpt

21 lines
360 B
Plaintext
Raw Normal View History

--TEST--
2008-05-14 13:04:05 +00:00
Bug #43128 (Very long class name causes segfault)
2008-11-04 11:12:23 +00:00
--INI--
memory_limit=128000000
--FILE--
<?php
$a = str_repeat("a", 10 * 1024 * 1024);
2007-11-22 13:33:36 +00:00
eval("class $a {}");
# call_user_func($a); // Warning
# $a->$a(); // Fatal error
if ($a instanceof $a); // Segmentation fault
new $a; // Segmentation fault
echo "ok\n";
2014-12-15 13:11:07 +00:00
?>
--EXPECT--
ok