xref: /PHP-5.5/Zend/tests/bug63336.phpt (revision dc024f0b)
1--TEST--
2Bug #63336 (invalid E_NOTICE error occur)
3--FILE--
4<?php
5error_reporting(E_ALL | E_NOTICE );
6define("TEST", "123");
7class Base {
8    const DUMMY = "XXX";
9    public function foo($var=TEST, $more=null) { return true; }
10    public function bar($more=self::DUMMY) { return true; }
11}
12
13class Child extends Base {
14    const DUMMY = "DDD";
15    public function foo($var=TEST, array $more = array()) { return true; }
16    public function bar($var, $more=self::DUMMY) { return true; }
17}
18?>
19--EXPECTF--
20Strict Standards: Declaration of Child::foo() should be compatible with Base::foo($var = TEST, $more = NULL) in %sbug63336.php on line %d
21
22Strict Standards: Declaration of Child::bar() should be compatible with Base::bar($more = self::DUMMY) in %sbug63336.php on line %d
23