]> granicus.if.org Git - php/commitdiff
*** empty log message ***
authorZeev Suraski <zeev@php.net>
Fri, 9 Apr 1999 19:16:46 +0000 (19:16 +0000)
committerZeev Suraski <zeev@php.net>
Fri, 9 Apr 1999 19:16:46 +0000 (19:16 +0000)
main/php_globals.h [new file with mode: 0644]

diff --git a/main/php_globals.h b/main/php_globals.h
new file mode 100644 (file)
index 0000000..9dc472c
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef _PHP_GLOBALS_H
+#define _PHP_GLOBALS_H
+
+typedef struct _php_core_globals php_core_globals;
+
+#ifdef ZTS
+# define PLS_D php_core_globals *core_globals
+# define PLS_DC        , PLS_D
+# define PLS_C core_globals
+# define PLS_CC , PLS_C
+# define PG(v) (core_globals->v)
+# define PLS_FETCH()   php_core_globals *core_globals = ts_resource(core_globals_id)
+#else
+# define PLS_D
+# define PLS_DC
+# define PLS_C
+# define PLS_CC
+# define PG(v) (core_globals.v)
+# define PLS_FETCH()
+extern ZEND_API php_core_globals core_globals;
+#endif
+
+
+struct _php_core_globals {
+    long magic_quotes_gpc;
+    long magic_quotes_runtime;
+    long magic_quotes_sybase;
+};
+
+
+#endif /* _PHP_GLOBALS_H */
\ No newline at end of file