Annotation of embedaddon/php/Zend/tests/bug43128.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #43128 (Very long class name causes segfault)
        !             3: --INI--
        !             4: memory_limit=128000000
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: $a = str_repeat("a", 10 * 1024 * 1024);
        !             9: 
        !            10: eval("class $a {}");
        !            11: 
        !            12: # call_user_func($a); // Warning
        !            13: # $a->$a();           // Fatal error
        !            14: 
        !            15: if ($a instanceof $a); // Segmentation fault
        !            16: new $a;                // Segmentation fault
        !            17: echo "ok\n";
        !            18: --EXPECT--
        !            19: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>