mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
0090003920
for multiple method definitions due to test script limitation. # Current CVS source w/o my patch should fail, though.
39 lines
395 B
PHP
39 lines
395 B
PHP
--TEST--
|
|
Class method registration
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
function foo() {}
|
|
}
|
|
|
|
class B extends A {
|
|
function foo() {}
|
|
}
|
|
|
|
class C extends B {
|
|
function foo() {}
|
|
}
|
|
|
|
class D extends A {
|
|
}
|
|
|
|
class F extends D {
|
|
function foo() {}
|
|
}
|
|
|
|
// Following class definition should fail, but cannot test
|
|
/*
|
|
class X {
|
|
function foo() {}
|
|
function foo() {}
|
|
}
|
|
*/
|
|
|
|
echo "OK\n";
|
|
?>
|
|
--EXPECT--
|
|
OK
|
|
|