Doc #64538 [Opn->Csd]: Possible strict notice not documented
Edit report at https://bugs.php.net/bug.php?id=64538&edit=1
ID: 64538
Updated by: tpunt@php.net
Reported by: ivokund at gmail dot com
Summary: Possible strict notice not documented
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Class/Object related
PHP Version: Irrelevant
-Assigned To:
+Assigned To: tpunt
Block user comment: N
Private report: N
New Comment:
Given that this notice no longer exists (for ~8 years), I am now closing this.
Previous Comments:
------------------------------------------------------------------------
[2013-06-25 03:27:05] 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?
------------------------------------------------------------------------
[2013-03-28 12:00:11] 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;
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64538&edit=1
Thread (3 messages)