Hi,
Is it an expected behaviour ?
See attached test file.
---- EXPECTED OUTPUT
Strict Standards: Declaration of ObjChild::method() should be
compatible with that of ObjParent::method() in %s on line 15
Strict standards: Declaration of ObjChild::__construct() should be
compatible with that of ObjParent::__construct() in %s on line 17
---- ACTUAL OUTPUT
Strict Standards: Declaration of ObjChild::method() should be
compatible with that of ObjParent::method() in %s on line 15
---- FAILED
NB :
The real actual output of the phpt is empty. Can we test strict error
with run-tests ?
Regards,
--
Jean-Sébastien H.
au-fil-du.net
--TEST--
No inheritance check in constructor ?
--CREDITS--
Jean-S�bastien Hedde jean...@au-fil-du.net
--FILE--
<?php
class ObjParent
{
public function method(ArrayObject $d) { }
public function __construct(ArrayObject $d) { }
}
class ObjChild extends ObjParent
{
public function method($d) { }
public function __construct($d) { }
}
--EXPECT--
Strict Standards: Declaration of ObjChild::method() should be compatible with
that of ObjParent::method() in C:\Users\hedde\Desktop\strict.php on line 15
Strict standards: Declaration of ObjChild::__construct() should be compatible
with that of ObjParent::__construct() in %s on line 17
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php