laruence                                 Mon, 31 Oct 2011 06:04:43 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=318600

Log:
Test for #60174 (Notice when array in method prototype error)

Bug: https://bugs.php.net/60174 (Closed) Notice when array in method prototype 
error
      
Changed paths:
    A   php/php-src/branches/PHP_5_4/Zend/tests/argument_restriction_006.phpt
    A   php/php-src/trunk/Zend/tests/argument_restriction_006.phpt

Added: php/php-src/branches/PHP_5_4/Zend/tests/argument_restriction_006.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/Zend/tests/argument_restriction_006.phpt       
                        (rev 0)
+++ php/php-src/branches/PHP_5_4/Zend/tests/argument_restriction_006.phpt       
2011-10-31 06:04:43 UTC (rev 318600)
@@ -0,0 +1,16 @@
+--TEST--
+Bug #60174 (Notice when array in method prototype error)
+--FILE--
+<?php
+Abstract Class Base {
+       public function test($foo, $extra = array("test")) {
+       }
+}
+
+class Sub extends Base {
+       public function test($foo, $extra) {
+       }
+}
+?>
+--EXPECTF--
+Strict Standards: Declaration of Sub::test() should be compatible with 
Base::test($foo, $extra = Array) in %sargument_restriction_006.php on line %d

Added: php/php-src/trunk/Zend/tests/argument_restriction_006.phpt
===================================================================
--- php/php-src/trunk/Zend/tests/argument_restriction_006.phpt                  
        (rev 0)
+++ php/php-src/trunk/Zend/tests/argument_restriction_006.phpt  2011-10-31 
06:04:43 UTC (rev 318600)
@@ -0,0 +1,16 @@
+--TEST--
+Bug #60174 (Notice when array in method prototype error)
+--FILE--
+<?php
+Abstract Class Base {
+       public function test($foo, $extra = array("test")) {
+       }
+}
+
+class Sub extends Base {
+       public function test($foo, $extra) {
+       }
+}
+?>
+--EXPECTF--
+Strict Standards: Declaration of Sub::test() should be compatible with 
Base::test($foo, $extra = Array) in %sargument_restriction_006.php on line %d

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to