#47068 [Opn]: Parse error if global namespace resolution is used

From: Date: Sun, 11 Jan 2009 15:21:49 +0000
Subject: #47068 [Opn]: Parse error if global namespace resolution is used
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132751@lists.php.net to get a copy of this message
ID: 47068 User updated by: ninzya at inbox dot lv Reported By: ninzya at inbox dot lv Status: Open Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5.3.0alpha3 New Comment: This used to work in PHP 5.3.0alpha2 Previous Comments: ------------------------------------------------------------------------ [2009-01-11 15:20:54] ninzya at inbox dot lv Description: ------------ See details below Reproduce code: --------------- index.php: 1: <?php 2: 3: class Test { 4: public static function Fn() { 5: return 'Passed'; 6: } 7: } 8: 9: echo ::Test::Fn(); 10: 11: ?> Expected result: ---------------- Passed Actual result: -------------- Parse error: parse error in D:\WebServer\PHP-5.3a3\index.php on line 9 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47068&edit=1

« previous php.bugs (#132751) next »