summaryrefslogtreecommitdiff
path: root/Zend/tests/bug43128.phpt
blob: 629f46c59467f933b4e70ed1b2dbea7a55a9ed38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #43128 (Very long class name causes segfault)
--INI--
memory_limit=128000000
--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