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 (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

--TEST--
Bug #55339 (Segfault with allow_call_time_pass_reference = Off)
--INI--
allow_call_time_pass_reference=off
--FILE--
<?php
function error_handler($errno, $errstr, $errfile, $errline) {
	eval(';');
}

set_error_handler('error_handler');

eval(<<<'EOF'
function foo()
{
    $array = array();
    foreach ($array as $key => $value) {
        bar($key, &$value);
    }
}

function bar()
{

}
EOF
);

echo "OK\n";
--EXPECT--
OK

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