php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64538 Possible strict notice not documented
Submitted: 2013-03-28 12:00 UTC Modified: 2017-03-27 20:47 UTC
From: ivokund at gmail dot com Assigned: tpunt (profile)
Status: Closed Package: Class/Object related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ivokund at gmail dot com
New email:
PHP Version: OS:

 

 [2013-03-28 12:00 UTC] ivokund at gmail dot com
Description:
------------
The following code works fine, but produces a PHP notice on PHP 5.2.17.

Strict Standards: Non-static method a::b() cannot be called statically

In the documentation for is_callable there is no mention of the possible strict 
mode notice. There is no notice in PHP 5.3, but I think the change in behaviour 
should be documented. 

Test script:
---------------
error_reporting(E_ALL| E_STRICT);
is_callable(array('a', 'b'));
class a { function b() {} }
exit;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-25 03:27 UTC] philip@php.net
Confirmed.

5.0.0 - 5.1.1:  No error
5.1.2 - 5.2.17: Produces this error
5.3.0 - 5.5.0:  No error

I do not see an official changelog entry on this, though. Anyone?
 [2017-01-28 12:20 UTC] cmb@php.net
-Package: Documentation problem +Package: Class/Object related
 [2017-03-27 20:47 UTC] tpunt@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tpunt
 [2017-03-27 20:47 UTC] tpunt@php.net
Given that this notice no longer exists (for ~8 years), I am now closing this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC