php-src/Zend/tests/bug43128.phpt
2008-05-14 13:05:55 +00:00

18 lines
326 B
PHP
Executable File

--TEST--
Bug #43128 (Very long class name causes segfault)
--FILE--
<?php
$a = str_repeat("a", 10 * 1024 * 1024);
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";
--EXPECT--
ok