]> granicus.if.org Git - php/commitdiff
- Reverse the patch until I have time to look at it. The global id should
authorAndi Gutmans <andi@php.net>
Tue, 16 May 2000 14:59:30 +0000 (14:59 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 16 May 2000 14:59:30 +0000 (14:59 +0000)
  be defined by ZEND_DECLARE_GLOBALS(cwd)

main/php_virtual_cwd.c
main/php_virtual_cwd.h

index be82671cfa73e2eeec8b9e55114baac8fc3e3fc7..0275b5c029224d771fc0435df601e10fa19b73a3 100644 (file)
 
 #ifdef ZTS
 #include "TSRM.h"
-static int cwd_globals_id;
-#else
-static zend_cwd_globals cwd_globals;
-endif
+#endif
 
 ZEND_DECLARE_MODULE_GLOBALS(cwd);
 
index ecd93463b69aba58b3998b45776c820850aabcde..44745557c69cb86230fdf6252f0f39144555a5a6 100644 (file)
@@ -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 */