Edit report at https://bugs.php.net/bug.php?id=46851&edit=1
ID: 46851
Comment by: spam2 at rhsoft dot net
Reported by: oliver at teqneers dot de
Summary: Strict standards: Declaration of ... should be
compatible with that of ...
Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: OpenSuSE 11.0
PHP Version: 5.2.8
Block user comment: N
Private report: N
New Comment:
there is nothing to resolve
as explained set it in php.ini and forget about the idea to raise error-logging which happens at
*compile time* within scripts or do it in your bootstrap before the includes are loaded
Previous Comments:
------------------------------------------------------------------------
[2018-01-02 06:07:48] 164551317 at qq dot com
it's not resolve at 2018-1-2 in PHP7.0.12-NTS
------------------------------------------------------------------------
[2016-08-26 02:29:04] luoziluojun at 126 dot com
it's not resolve at 2016/8/26
------------------------------------------------------------------------
[2015-01-21 16:01:59] t dot kmieliauskas at gmail dot com
Hey, 2008 called, they said they wanted their errors back!
Still valid in 5.5.12...
------------------------------------------------------------------------
[2015-01-21 16:01:52] t dot kmieliauskas at gmail dot com
Hey, 2008 called, they said they wanted their errors back!
Still valid in 5.5.12...
------------------------------------------------------------------------
[2012-02-11 19:10:18] ldr at ldrutledge dot com
I understand the discussion above. The warning is because some possible method calls may fail due to
incomplete knowledge at compile-time.
However this causes the warning:
class A { public function foo(StdClass $a) {;}}
class B extends A { public function foo($a) {;}}
as does this:
class A { public function foo($a) {;}}
class B extends A { public function foo(StdClass $a) {;}}
In the case of
function bar(A $a, A $b){$a->foo($b);}
The second form can fail at run-time, but the first can not and should not trigger the error.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=46851
--
Edit this bug report at https://bugs.php.net/bug.php?id=46851&edit=1