File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug55339.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

    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>