File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
classes /
method_override_optional_arg_002.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:34 2012 UTC (12 years, 10 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
--TEST--
Omitting optional arg in method inherited from abstract class
--FILE--
<?php
abstract class A {
function foo($arg = 1) {}
}
class B extends A {
function foo() {
echo "foo\n";
}
}
$b = new B();
$b->foo();
?>
--EXPECTF--
Strict Standards: Declaration of B::foo() should be compatible with A::foo($arg = 1) in %s on line %d
foo
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>