#46316 [NEW]: call_user_func_array php5.x differences

From: Date: Thu, 16 Oct 2008 15:45:39 +0000
Subject: #46316 [NEW]: call_user_func_array php5.x differences
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1212@lists.php.net to get a copy of this message
From: rpeters at icomproductions dot ca Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: call_user_func_array php5.x differences Description: ------------ return call_user_func_array(array($this, 'parent::__construct'), $arrParentArgs); causes a warning in 5.1.1, but works in 5.2.6 $parent_class=get_parent_class($this); call_user_func_array(array($parent_class, '__construct'), $arrParentArgs); causes an e_strict message in 5.2.6, but works in 5.1.1 The documentation needs to state when this change occurred, so that applications can test the PHP version and behave appropriately. Expected result: ---------------- The documentation should reflect this behavior change, and inform developers of how to work with it. It should also describe the current correct way of calling parent functions. Actual result: -------------- The documentation says nothing about using parent in call_user_func_array. -- Edit bug report at http://bugs.php.net/?id=46316&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46316&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46316&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46316&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46316&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46316&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46316&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46316&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46316&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46316&r=support Expected behavior: http://bugs.php.net/fix.php?id=46316&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46316&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46316&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46316&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46316&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46316&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46316&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46316&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46316&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46316&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46316&r=mysqlcfg

« previous php.doc.bugs (#1212) next »