mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
Merge branch 'PHP-5.4'
This commit is contained in:
commit
ad476bde9b
@ -9,13 +9,13 @@ define("TEST", "123");
|
|||||||
class Base {
|
class Base {
|
||||||
const DUMMY = "XXX";
|
const DUMMY = "XXX";
|
||||||
public function foo($var=TEST, $more=null) { return true; }
|
public function foo($var=TEST, $more=null) { return true; }
|
||||||
public function bar($var, $more=self::DUMMY) { return true; }
|
public function bar($more=self::DUMMY) { return true; }
|
||||||
}
|
}
|
||||||
|
|
||||||
class Child extends Base {
|
class Child extends Base {
|
||||||
const DUMMY = "DDD";
|
const DUMMY = "DDD";
|
||||||
public function foo($var=TEST) { return true; }
|
public function foo($var=TEST, array $more = array()) { return true; }
|
||||||
public function bar() { return true; }
|
public function bar($var, $more=self::DUMMY) { return true; }
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
|
Loading…
Reference in New Issue
Block a user