Bug #69563 [Opn->Nab]: call_user_func_array use class that is no instantiation。

From: Date: Sat, 02 May 2015 11:06:42 +0000
Subject: Bug #69563 [Opn->Nab]: call_user_func_array use class that is no instantiation。
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192455@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69563&edit=1 ID: 69563 Updated by: nikic@php.net Reported by: jsjscool at 163 dot com Summary: call_user_func_array use class that is no instantiation。 -Status: Open +Status: Not a bug Type: Bug -Package: PHP Language Specification +Package: Scripting Engine problem Operating System: OS X Yosemite 10.10 PHP Version: 5.5.24 Block user comment: N Private report: N New Comment: This already throws a strict standards notice in PHP 5 and a deprecation in PHP 7, please check your error_reporting setting. Presumably it will be entirely forbidden in PHP 8. Previous Comments: ------------------------------------------------------------------------ [2015-05-02 11:01:08] jsjscool at 163 dot com 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 this bug report at https://bugs.php.net/bug.php?id=69563&edit=1

« previous php.bugs (#192455) next »