summaryrefslogtreecommitdiff
path: root/main/php_virtual_cwd.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-05-16 14:59:30 +0000
committerAndi Gutmans <andi@php.net>2000-05-16 14:59:30 +0000
commit0aa5f2ea3c161e7ace096269b03e45e01e93c079 (patch)
treeb0d2e09bf9dc9d3f3d48249583e1275676942858 /main/php_virtual_cwd.h
parent4e6e741af8f8f398112cbed67c2a6bd91127b3c9 (diff)
downloadphp-git-0aa5f2ea3c161e7ace096269b03e45e01e93c079.tar.gz
- Reverse the patch until I have time to look at it. The global id should
be defined by ZEND_DECLARE_GLOBALS(cwd)
Diffstat (limited to 'main/php_virtual_cwd.h')
-rw-r--r--main/php_virtual_cwd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/php_virtual_cwd.h b/main/php_virtual_cwd.h
index ecd93463b6..44745557c6 100644
--- a/main/php_virtual_cwd.h
+++ b/main/php_virtual_cwd.h
@@ -61,6 +61,7 @@ ZEND_END_MODULE_GLOBALS(cwd)
# define CWDLS_CC , CWDLS_C
# define CWDG(v) (cwd_globals->v)
# define CWDLS_FETCH() zend_cwd_globals *cwd_globals = ts_resource(cwd_globals_id)
+CWD_API extern int cwd_globals_id;
#else
# define CWDLS_D void
# define CWDLS_DC
@@ -68,6 +69,7 @@ ZEND_END_MODULE_GLOBALS(cwd)
# define CWDLS_CC
# define CWDG(v) (cwd_globals.v)
# define CWDLS_FETCH()
+extern CWD_API zend_cwd_globals cwd_globals;
#endif
#endif /* VIRTUAL_CWD_H */