File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / objects_007.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

--TEST--
method overloading with different method signature
--INI--
error_reporting=8191
--FILE--
<?php

class test {
	function foo($arg, &$arg2 = NULL) {}
}

class test2 extends test {
	function foo($arg, &$arg2 = NULL) {} 
}

class test3 extends test {
	function foo($arg, &$arg2) {} 
}

echo "Done\n";
?>
--EXPECTF--	
Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d
Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>