php-src/Zend/tests/objects_005.phpt
Steph Fox 6d8760677d - killed off UEXPECT
- altered EXPECT for parser errors. This may or may not be a Good Thing.
2008-05-26 14:33:44 +00:00

24 lines
374 B
PHP

--TEST--
method overloading with different method signature
--INI--
error_reporting=8191
--FILE--
<?php
class test {
function &foo() {}
}
class test2 extends test {
function &foo() {}
}
class test3 extends test {
function foo() {}
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d