note 99026 added to language.namespaces.faq
| From: | s dot kraus at rootwerk dot de | Date: | Thu, 22 Jul 2010 21:28:37 +0000 |
| Subject: | note 99026 added to language.namespaces.faq | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171058@lists.php.net to get a copy of this message | ||
In addition to Q1:
"If I don't use namespaces, should I care about any of this?"
"No. Namespaces do not affect any existing code in any way,"
Please note: This is not absolutely correct. If you have code like this:
<?PHP
class namespace extends something {
}
?>
This will fail with: PHP Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING
in...
I see no alternative to fix this issue than changing my existing code.
regards,
Sebastian
----
Server IP: 69.147.83.197
Probable Submitter: 84.170.34.16
----
Manual Page -- http://www.php.net/manual/en/language.namespaces.faq.php
Edit -- https://master.php.net/note/edit/99026
Del: integrated -- https://master.php.net/note/delete/99026/integrated
Del: useless -- https://master.php.net/note/delete/99026/useless
Del: bad code -- https://master.php.net/note/delete/99026/bad+code
Del: spam -- https://master.php.net/note/delete/99026/spam
Del: non-english -- https://master.php.net/note/delete/99026/non-english
Del: in docs -- https://master.php.net/note/delete/99026/in+docs
Del: other reasons-- https://master.php.net/note/delete/99026
Reject -- https://master.php.net/note/reject/99026
Search -- https://master.php.net/manage/user-notes.php