PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

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

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 = self::DUMMY) in /var/php_gcov/PHP_HEAD/Zend/tests/bug63336.php on line 14

Diff

001+ 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($more = self::DUMMY) in /var/php_gcov/PHP_HEAD/Zend/tests/bug63336.php on line 14
003- Strict Standards: Declaration of Child::bar() should be compatible with Base::bar($var, $more = 'XXX') in %sbug63336.php on line %d

 

Generated at Wed, 22 Oct 2014 07:25:05 +0000 (2 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.