php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69563 call_user_func_array use class that is no instantiation。
Submitted: 2015-05-02 11:01 UTC Modified: 2015-05-02 11:06 UTC
From: jsjscool at 163 dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.5.24 OS: OS X Yosemite 10.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jsjscool at 163 dot com
New email:
PHP Version: OS:

 

 [2015-05-02 11:01 UTC] 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());
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-02 11:06 UTC] nikic@php.net
-Status: Open +Status: Not a bug -Package: PHP Language Specification +Package: Scripting Engine problem
 [2015-05-02 11:06 UTC] nikic@php.net
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.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 17:00:02 2026 UTC