Doc #64538 [Opn->Csd]: Possible strict notice not documented

From: Date: Mon, 27 Mar 2017 20:47:34 +0000
Subject: Doc #64538 [Opn->Csd]: Possible strict notice not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14547@lists.php.net to get a copy of this message
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)

« previous php.doc.bugs (#14547) next »