summaryrefslogtreecommitdiff
path: root/ext/swf
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-11 16:34:53 +0000
committerAndi Gutmans <andi@php.net>2000-06-11 16:34:53 +0000
commit6caaf70451f6632d11ff1fd81b72f56cf681a7d6 (patch)
tree948c26e1ab4aa86d9c99b239c6ba2d6da4187c43 /ext/swf
parentbcec04f1d9faa966199b0cd9ca30d83d941f7b71 (diff)
downloadphp-git-6caaf70451f6632d11ff1fd81b72f56cf681a7d6.tar.gz
- Make shockwave work with virtual_dir (a bit ugly).
- swf_openfile doesn't return any values. This seems to mean that you can - only have one file open at a time.
Diffstat (limited to 'ext/swf')
-rw-r--r--ext/swf/swf.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/swf/swf.c b/ext/swf/swf.c
index 5a0c006184..eaea922cc0 100644
--- a/ext/swf/swf.c
+++ b/ext/swf/swf.c
@@ -168,10 +168,19 @@ PHP_FUNCTION(swf_openfile)
convert_to_double_ex(b);
na = Z_STRVAL_PP(name);
+
+#ifdef VIRTUAL_DIR
+ if (virtual_filepath(na, &na)) {
+ return;
+ }
+#endif
swf_openfile((strcasecmp("php://stdout", na)==0) ? fileno(stdout) : na,
(float)Z_DVAL_PP(sizeX), (float)Z_DVAL_PP(sizeY),
(float)Z_DVAL_PP(frameRate), (float)Z_DVAL_PP(r), (float)Z_DVAL_PP(g), (float)Z_DVAL_PP(b));
+#ifdef VIRTUAL_DIR
+ free(na);
+#endif
}
/* }}} */
@@ -1144,4 +1153,4 @@ PHP_FUNCTION(swf_posround)
}
/* }}} */
-#endif \ No newline at end of file
+#endif