summaryrefslogtreecommitdiff
path: root/Zend/zend_constants.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2003-02-16 11:12:43 +0000
committerStanislav Malyshev <stas@php.net>2003-02-16 11:12:43 +0000
commita4c3b2ce807dec309812cfe72c91a597c8476113 (patch)
treedf2e8a0aa85b595abf66f0c7b476471c3749fc11 /Zend/zend_constants.c
parent0a18a9d744afb9d97d46bad1f40c11a047bad5df (diff)
downloadphp-git-a4c3b2ce807dec309812cfe72c91a597c8476113.tar.gz
Namespace patch. Big changes:
1. Nested classes are gone. 2. New syntax for namespaces: namespace foo { class X { ... } function bar { ... } var x = 1; const ZZ = 2; } 3. Namespaced symbol access: $x = new foo::X; - etc. For now, namespaces are case insensitive, just like classes. Also, there can be no global class and namespace with the same name (to avoid ambiguities in :: resolution).
Diffstat (limited to 'Zend/zend_constants.c')
-rw-r--r--Zend/zend_constants.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_constants.c b/Zend/zend_constants.c
index 956dfa53a1..826e6071fa 100644
--- a/Zend/zend_constants.c
+++ b/Zend/zend_constants.c
@@ -80,7 +80,7 @@ void clean_module_constants(int module_number TSRMLS_DC)
int zend_startup_constants(TSRMLS_D)
{
- EG(zend_constants) = &CG(main_class).constants_table;
+ EG(zend_constants) = &CG(global_namespace).constants_table;
if (zend_hash_init(EG(zend_constants), 20, NULL, ZEND_CONSTANT_DTOR, 1)==FAILURE) {
return FAILURE;