Bug #69563 [NEW]: call_user_func_array use class that is no instantiation。

From: Date: Sat, 02 May 2015 11:01:08 +0000
Subject: Bug #69563 [NEW]: call_user_func_array use class that is no instantiation。
Groups: php.standards 
Request: Send a blank email to standards-+get-757@lists.php.net to get a copy of this message
From: jsjscool at 163 dot com Operating system: OS X Yosemite 10.10 PHP version: 5.5.24 Package: PHP Language Specification Bug Type: Bug Bug description:call_user_func_array use class that is no instantiation。 Description: ------------ <?php class Ctest{ public function index(){ echo "I need not instantiation!"; } } call_user_func_array(array("Ctest","index"),array()); ?> The Ctest is not instantiation,but I can use the 'index()' function.I think this should display a error. Test script: --------------- <?php class Ctest{ public function index(){ echo "I need not instantiation!"; } } call_user_func_array(array("Ctest","index"),array()); ?> -- Edit bug report at https://bugs.php.net/bug.php?id=69563&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69563&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69563&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69563&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69563&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69563&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69563&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69563&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69563&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69563&r=support Expected behavior: https://bugs.php.net/fix.php?id=69563&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69563&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69563&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69563&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69563&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69563&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69563&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69563&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69563&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69563&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69563&r=mysqlcfg

« previous php.standards (#757) next »