rfc:namespaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:namespaces [2008/09/15 23:46] – Class constants v. namespaced constants ambiguities: description and code jochem | rfc:namespaces [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 108: | Line 108: | ||
< | < | ||
defined(' | defined(' | ||
- | defined(' | + | defined(' |
defined(' | defined(' | ||
defined(' | defined(' | ||
Line 758: | Line 758: | ||
> | > | ||
> If a fully qualified name is prefixed with function:: or const:: it will only check the namespace function/ | > If a fully qualified name is prefixed with function:: or const:: it will only check the namespace function/ | ||
- | + | > | |
- | ns_071.inc: | + | > ns_071.inc: |
- | <code php> | + | > <code php> |
<?php | <?php | ||
namespace foo; | namespace foo; | ||
Line 773: | Line 773: | ||
?> | ?> | ||
</ | </ | ||
- | ns_071.phpt: | + | > ns_071.phpt: |
- | <code php> | + | > <code php> |
--TEST-- | --TEST-- | ||
071: name conflict, function/ | 071: name conflict, function/ | ||
Line 815: | Line 815: | ||
This patch addresses the inability to include [html] output prior to the first **<? | This patch addresses the inability to include [html] output prior to the first **<? | ||
+ | To quote the author from his original post regarding this patch: | ||
+ | > This is a simple patch that allows files like this to work without parse error.: | ||
+ | > | ||
+ | > main.php: | ||
+ | > <code php> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | <?php | ||
+ | namespace my:: | ||
+ | |||
+ | // stuff | ||
+ | |||
+ | ?> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
===== Miscellaneous ===== | ===== Miscellaneous ===== | ||
Line 857: | Line 876: | ||
* [[php-internals@119874502923978|Suggestion: | * [[php-internals@119874502923978|Suggestion: | ||
- | Nothing has been filtered on the basis of relevance! | + | //Nothing has been filtered on the basis of relevance |
rfc/namespaces.1221522417.txt.gz · Last modified: 2017/09/22 13:28 (external edit)