diff options
| author | Marcus Boerger <helly@php.net> | 2003-05-04 23:01:39 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-05-04 23:01:39 +0000 |
| commit | bd74e75b41b92c6ee7f910fae40c6a8a5651c731 (patch) | |
| tree | 46da85f141285f92e477f20c9ab8fa4f66fcf85b /Zend/zend_API.c | |
| parent | 29a3586f7b2f41b5682d15b49e4a7bec14cc2e68 (diff) | |
| download | php-git-bd74e75b41b92c6ee7f910fae40c6a8a5651c731.tar.gz | |
Fix namespace issue: Only CG is needed here
Diffstat (limited to 'Zend/zend_API.c')
| -rw-r--r-- | Zend/zend_API.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 5fac428ac4..238bcbb6fa 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1416,15 +1416,15 @@ ZEND_API zend_class_entry *zend_register_internal_ns_class(zend_class_entry *cla if (EG(active_namespace) != ns) { restore_orig = 1; - orig_namespace = EG(active_namespace); - EG(active_namespace) = ns; + orig_namespace = CG(active_namespace); + CG(active_namespace) = ns; orig_class_table = CG(class_table); CG(class_table) = &ns->class_table; } class_entry->ns = ns; register_class = zend_register_internal_class_ex(class_entry, parent_ce, NULL TSRMLS_CC); if (restore_orig) { - EG(active_namespace) = orig_namespace; + CG(active_namespace) = orig_namespace; CG(class_table) = orig_class_table; } |
