summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-05-05 17:28:22 +0200
committerNikita Popov <nikic@php.net>2014-05-05 17:28:22 +0200
commit4d22be992ca23e9ec6f46962b88277229d7f4ace (patch)
treed0928f6d53dfbd2fe1ddd376d72b2313900ba483 /ext/zip/php_zip.c
parenta636c4c03f89e626f6b778a3e3ab40e989ad225d (diff)
downloadphp-git-4d22be992ca23e9ec6f46962b88277229d7f4ace.tar.gz
Fix ZTS
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 30ceae6113..9f5d9d03ca 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -1632,7 +1632,7 @@ static void php_zip_add_from_pattern(INTERNAL_FUNCTION_PARAMETERS, int type) /*
if ((zval_file = zend_hash_index_find(Z_ARRVAL_P(return_value), i)) != NULL) {
if (remove_all_path) {
- basename = php_basename(Z_STRVAL_P(zval_file), Z_STRLEN_P(zval_file), NULL, 0);
+ basename = php_basename(Z_STRVAL_P(zval_file), Z_STRLEN_P(zval_file), NULL, 0 TSRMLS_CC);
file_stripped = basename->val;
file_stripped_len = basename->len;
} else if (remove_path && strstr(Z_STRVAL_P(zval_file), remove_path) != NULL) {