Annotation of embedaddon/php/Zend/tests/bug55339.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #55339 (Segfault with allow_call_time_pass_reference = Off)
                      3: --INI--
                      4: allow_call_time_pass_reference=off
                      5: --FILE--
                      6: <?php
                      7: function error_handler($errno, $errstr, $errfile, $errline) {
                      8:        eval(';');
                      9: }
                     10: 
                     11: set_error_handler('error_handler');
                     12: 
                     13: eval(<<<'EOF'
                     14: function foo()
                     15: {
                     16:     $array = array();
                     17:     foreach ($array as $key => $value) {
                     18:         bar($key, &$value);
                     19:     }
                     20: }
                     21: 
                     22: function bar()
                     23: {
                     24: 
                     25: }
                     26: EOF
                     27: );
                     28: 
                     29: echo "OK\n";
                     30: --EXPECT--
                     31: OK

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