summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php/mod_php/files/php-4.3.11-flash.patch')
-rw-r--r--dev-php/mod_php/files/php-4.3.11-flash.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-php/mod_php/files/php-4.3.11-flash.patch b/dev-php/mod_php/files/php-4.3.11-flash.patch
new file mode 100644
index 000000000000..9cda1b40ce9c
--- /dev/null
+++ b/dev-php/mod_php/files/php-4.3.11-flash.patch
@@ -0,0 +1,25 @@
+--- ext/swf/swf.c.orig 2005-04-01 14:27:16.419352696 -0500
++++ ext/swf/swf.c 2005-04-01 14:25:41.775740712 -0500
+@@ -240,7 +240,10 @@ PHP_FUNCTION(swf_openfile)
+ na = tmpna;
+ #endif
+ if (php_check_open_basedir(na TSRMLS_CC) || (PG(safe_mode) && !php_checkuid(na, "wb+", CHECKUID_CHECK_MODE_PARAM))) {
+- goto err;
++#ifdef VIRTUAL_DIR
++ free(na);
++#endif
++ return;
+ }
+
+ if (!SWFG(use_file))
+@@ -249,10 +252,6 @@ PHP_FUNCTION(swf_openfile)
+ swf_openfile(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));
+-err:
+-#ifdef VIRTUAL_DIR
+- free(na);
+-#endif
+ }
+ /* }}} */
+