sixd                                     Wed, 12 May 2010 21:34:32 +0000

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

Log:
Errors using reserved words as methods

Changed paths:
    A   php/php-src/branches/PHP_5_3/tests/basic/bug51709_1.phpt
    A   php/php-src/branches/PHP_5_3/tests/basic/bug51709_2.phpt
    A   php/php-src/trunk/tests/basic/bug51709_1.phpt
    A   php/php-src/trunk/tests/basic/bug51709_2.phpt

Added: php/php-src/branches/PHP_5_3/tests/basic/bug51709_1.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/tests/basic/bug51709_1.phpt                    
        (rev 0)
+++ php/php-src/branches/PHP_5_3/tests/basic/bug51709_1.phpt    2010-05-12 
21:34:32 UTC (rev 299311)
@@ -0,0 +1,16 @@
+--TEST--
+Bug #51709 (Can't use keywords as method names)
+--FILE--
+<?php
+
+class foo {
+        static function for() {
+                echo "1";
+        }
+}
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECTF--
+Parse error: syntax error, unexpected T_FOR, expecting T_STRING in 
%s/bug51709_1.php on line %d


Property changes on: php/php-src/branches/PHP_5_3/tests/basic/bug51709_1.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/branches/PHP_5_3/tests/basic/bug51709_2.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/tests/basic/bug51709_2.phpt                    
        (rev 0)
+++ php/php-src/branches/PHP_5_3/tests/basic/bug51709_2.phpt    2010-05-12 
21:34:32 UTC (rev 299311)
@@ -0,0 +1,16 @@
+--TEST--
+Bug #51709 (Can't use keywords as method names)
+--FILE--
+<?php
+
+class foo {
+        static function goto() {
+                echo "1";
+        }
+}
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECTF--
+Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in 
%s/bug51709_2.php on line %d


Property changes on: php/php-src/branches/PHP_5_3/tests/basic/bug51709_2.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/trunk/tests/basic/bug51709_1.phpt
===================================================================
--- php/php-src/trunk/tests/basic/bug51709_1.phpt                               
(rev 0)
+++ php/php-src/trunk/tests/basic/bug51709_1.phpt       2010-05-12 21:34:32 UTC 
(rev 299311)
@@ -0,0 +1,16 @@
+--TEST--
+Bug #51709 (Can't use keywords as method names)
+--FILE--
+<?php
+
+class foo {
+        static function for() {
+                echo "1";
+        }
+}
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECTF--
+Parse error: syntax error, unexpected T_FOR, expecting T_STRING in 
%s/bug51709_1.php on line %d


Property changes on: php/php-src/trunk/tests/basic/bug51709_1.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/trunk/tests/basic/bug51709_2.phpt
===================================================================
--- php/php-src/trunk/tests/basic/bug51709_2.phpt                               
(rev 0)
+++ php/php-src/trunk/tests/basic/bug51709_2.phpt       2010-05-12 21:34:32 UTC 
(rev 299311)
@@ -0,0 +1,16 @@
+--TEST--
+Bug #51709 (Can't use keywords as method names)
+--FILE--
+<?php
+
+class foo {
+        static function goto() {
+                echo "1";
+        }
+}
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECTF--
+Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in 
%s/bug51709_2.php on line %d


Property changes on: php/php-src/trunk/tests/basic/bug51709_2.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

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

Reply via email to