Expected Test Failure Report for Zend/tests/bug63336.phpt ('Bug #63336 (invalid E_NOTICE error occur)')
Script
1:
<?php 2: error_reporting(E_ALL | E_NOTICE ); 3: define("TEST", "123"); 4: class Base { 5: const DUMMY = "XXX"; 6: public function foo($var=TEST, $more=null) { return true; } 7: public function bar($more=self::DUMMY) { return true; } 8: } 9: 10: class Child extends Base { 11: const DUMMY = "DDD"; 12: public function foo($var=TEST, array $more = array()) { return true; } 13: public function bar($var, $more=self::DUMMY) { return true; } 14: } 15: ?> 16:
Expected
Strict Standards: Declaration of Child::foo() should be compatible with Base::foo($var = '123', $more = NULL) in %sbug63336.php on line %d
Strict Standards: Declaration of Child::bar() should be compatible with Base::bar($var, $more = 'XXX') in %sbug63336.php on line %d
Output
Notice: Use of undefined constant TEST - assumed 'TEST' in /var/php_gcov/PHP_HEAD/Zend/tests/bug63336.php on line 14
Strict Standards: Declaration of Child::foo() should be compatible with Base::foo($var = 'TEST', $more = NULL) in /var/php_gcov/PHP_HEAD/Zend/tests/bug63336.php on line 14
Strict Standards: Declaration of Child::bar() should be compatible with Base::bar($more = 'XXX') in /var/php_gcov/PHP_HEAD/Zend/tests/bug63336.php on line 14
Diff
001+ Notice: Use of undefined constant TEST - assumed 'TEST' in /var/php_gcov/PHP_HEAD/Zend/tests/bug63336.php on line 14
002+
003+ Strict Standards: Declaration of Child::foo() should be compatible with Base::foo($var = 'TEST', $more = NULL) in /var/php_gcov/PHP_HEAD/Zend/tests/bug63336.php on line 14
001- Strict Standards: Declaration of Child::foo() should be compatible with Base::foo($var = '123', $more = NULL) in %sbug63336.php on line %d
003- Strict Standards: Declaration of Child::bar() should be compatible with Base::bar($var, $more = 'XXX') in %sbug63336.php on line %d
005+ Strict Standards: Declaration of Child::bar() should be compatible with Base::bar($more = 'XXX') in /var/php_gcov/PHP_HEAD/Zend/tests/bug63336.php on line 14
Generated at Mon, 10 Jun 2013 15:00:26 +0000 (9 days ago)
|