summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-12-06 17:47:04 +0000
committerAndi Gutmans <andi@php.net>2001-12-06 17:47:04 +0000
commit42486196ad5e92d248b62b9c0691969ab81ef453 (patch)
treefb4f1d0c2afee6809baa07c67ea26730b4391e68 /Zend/zend_execute_API.c
parentfe94f594272f797c6bb66c3c5a4ad64bbb1d7c73 (diff)
downloadphp-git-42486196ad5e92d248b62b9c0691969ab81ef453.tar.gz
- Initial work on changing namespace scope. Only methods & variables
- right now. <? $hey = "Global hey\n"; class foo { static $hey = "Namespace hey\n"; function bar() { print "in foo::bar()\n"; } } function bar() { print "in bar()\n"; } bar(); namespace foo; bar(); namespace; bar(); namespace foo; $bar_indirect = "bar"; $bar_indirect(); namespace; print $hey; namespace foo; print $hey; $hey = "Namespace hey #2\n"; namespace; print $hey; $hey = "Global hey #2\n"; namespace foo; print $hey; ?>
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index b82ed02802..689a3235fc 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -158,6 +158,8 @@ void init_executor(TSRMLS_D)
#endif
EG(exception) = NULL;
+
+ EG(namespace) = NULL;
}