From:             hannes dot magnusson at gmail dot com
Operating system: FreeBSD
PHP version:      6CVS-2006-10-20 (CVS)
PHP Bug Type:     *Programming Data Structures
Bug description:  call_user_func and friends don't accept array($this, "func") 
callback anymore

Description:
------------
call_user_func()/array_walk() doesn't accept 
array($obj, "func") callback anymore...

(See Zend/tests/bug31720.phpt && Zend/tests/bug19859.phpt)

Reproduce code:
---------------
<?php
$array = array('at least one element');

array_walk($array, array($nonesuchvar,'show'));
?>


Expected result:
----------------
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


Actual result:
--------------
Notice: Undefined variable: nonesuchvar 
in /usr/src/php/6.0/Zend/tests/bug31720.php on line 4

Warning: array_walk() expects parameter 2 to be valid 
callback, array given 
in /usr/src/php/6.0/Zend/tests/bug31720.php on line 4


-- 
Edit bug report at http://bugs.php.net/?id=39216&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39216&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39216&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39216&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39216&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39216&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39216&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39216&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39216&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39216&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39216&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39216&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39216&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39216&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39216&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39216&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39216&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39216&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39216&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39216&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39216&r=mysqlcfg

Reply via email to