summaryrefslogtreecommitdiff
path: root/ext/swf/php_swf.h
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2000-08-15 17:30:41 +0000
committerSterling Hughes <sterling@php.net>2000-08-15 17:30:41 +0000
commit15902929e8f86032e5676ea400722b669e534e70 (patch)
treeff4c3d765256ab75a772ab169ece652e5cbc3b55 /ext/swf/php_swf.h
parentce635bdb3c9ef72d9901e7f96f9efcac6cd5182a (diff)
downloadphp-git-15902929e8f86032e5676ea400722b669e534e70.tar.gz
@ Fix stdout support with the swf extension. (Sterling)
Diffstat (limited to 'ext/swf/php_swf.h')
-rw-r--r--ext/swf/php_swf.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/swf/php_swf.h b/ext/swf/php_swf.h
index 6c00a97ef4..891581e4d8 100644
--- a/ext/swf/php_swf.h
+++ b/ext/swf/php_swf.h
@@ -28,6 +28,7 @@ extern zend_module_entry swf_module_entry;
PHP_MINIT_FUNCTION(swf);
PHP_MINFO_FUNCTION(swf);
+PHP_RINIT_FUNCTION(swf);
extern void php_swf_define(INTERNAL_FUNCTION_PARAMETERS, int opt);
extern void php_swf_fill_bitmap(INTERNAL_FUNCTION_PARAMETERS, int opt);
extern void php_swf_geo_same(INTERNAL_FUNCTION_PARAMETERS, int opt);
@@ -99,6 +100,19 @@ PHP_FUNCTION(swf_translate);
PHP_FUNCTION(swf_rotate);
PHP_FUNCTION(swf_posround);
+typedef struct {
+ int use_file;
+ char *tmpfile_name;
+} php_swf_globals;
+
+#ifdef ZTS
+#define SWFG(v) (swf_globals->v)
+#define SWFLS_FETCH() php_swf_globals *swf_globals = ts_resource(gd_swf_id)
+#else
+#define SWFG(v) (swf_globals.v)
+#define SWFLS_FETCH()
+#endif
+
#else
#define swf_module_ptr NULL
#endif /* HAVE_FLASH */