summaryrefslogtreecommitdiff
path: root/Zend/tests/bug43128.phpt
blob: 2832acaeb80a235bea43f332a9da0249bfbb9e64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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