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

From: Date: Tue, 25 Jun 2013 03:27:05 +0000
Subject: Doc #64538 [Opn]: Possible strict notice not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9987@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:         philip@php.net
 Reported by:        ivokund at gmail dot com
 Summary:            Possible strict notice not documented
 Status:             Open
 Type:               Documentation Problem
 Package:            Documentation problem
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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?


Previous Comments:
------------------------------------------------------------------------
[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 (#9987) next »