cvs: php4 /ext/swf/ swf.c
| From: | Andi Gutmans | Date: | Sun, 11 Jun 2000 16:34:53 +0000 |
| Subject: | cvs: php4 /ext/swf/ swf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-168@lists.php.net to get a copy of this message | ||
andi Sun Jun 11 09:34:53 2000 EDT
Modified files:
/php4/ext/swf swf.c
Log:
- 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.
Index: php4/ext/swf/swf.c
diff -u php4/ext/swf/swf.c:1.18 php4/ext/swf/swf.c:1.19
--- php4/ext/swf/swf.c:1.18 Sun Jun 11 00:51:10 2000
+++ php4/ext/swf/swf.c Sun Jun 11 09:34:53 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: swf.c,v 1.18 2000/06/11 07:51:10 sterling Exp $ */
+/* $Id: swf.c,v 1.19 2000/06/11 16:34:53 andi Exp $ */
#include "php.h"
@@ -168,10 +168,19 @@
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 @@
}
/* }}} */
-#endif
\ No newline at end of file
+#endif