|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-23 00:21 UTC] felipe@php.net
-Package: Class/Object related
+Package: Documentation problem
[2010-07-23 00:21 UTC] felipe@php.net
[2010-07-25 18:43 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-07-25 18:43 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 18:00:01 2025 UTC |
Description: ------------ After upgradeing from php 5.2.4 to 5.3.2 (with ubuntu 10.4), the following code won't work: <?PHP class namespace extends something { } ?> The error message: PHP Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in ... The documentation says: Q: If I don't use namespaces, should I care about any of this? A: No. Namespaces do not affect any existing code in any way ( http://www.php.net/manual/en/language.namespaces.faq.php ) Test script: --------------- <?PHP class namespace extends something { } ?> Expected result: ---------------- in this case, I won't define a php-namespace, but a functionality within my application, which was called so before namespaces existed in php. Actual result: -------------- PHP Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in ...