cvs: ZendEngine2 /tests bug31720.phpt

From: Date: Wed, 02 Feb 2005 10:31:53 +0000
Subject: cvs: ZendEngine2 /tests bug31720.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3359@lists.php.net to get a copy of this message
stas Wed Feb 2 05:31:53 2005 EDT Modified files: /ZendEngine2/tests bug31720.phpt Log: test for Bug #31720 http://cvs.php.net/diff.php/ZendEngine2/tests/bug31720.phpt?r1=1.1&r2=1.2&ty=u Index: ZendEngine2/tests/bug31720.phpt diff -u /dev/null ZendEngine2/tests/bug31720.phpt:1.2 --- /dev/null Wed Feb 2 05:31:53 2005 +++ ZendEngine2/tests/bug31720.phpt Wed Feb 2 05:31:53 2005 @@ -0,0 +1,16 @@ +--TEST-- +Bug #31720 (Invalid object callbacks not caught in array_walk()) +--FILE-- +<? +$array = array('at least one element'); + +array_walk($array, array($nonesuchvar,'show')); +?> +===DONE=== +--EXPECTF-- +Notice: Undefined variable: nonesuchvar in %s on line %d + +Notice: Non-callable array passed to zend_call_function() in %s on line %d + +Warning: array_walk(): Unable to call Array() - function does not exist in %s on line %d +===DONE===

« previous php.zend-engine.cvs (#3359) next »