Patch zip_addPattern.patch for Zip Related Bug #53856
Patch version 2011-01-27 15:46 UTC
Return to Bug #53856 |
Download this patch
Patch Revisions:
Developer: rquadling
Index: php_zip.c
===================================================================
--- php_zip.c (revision 307795)
+++ php_zip.c (working copy)
@@ -1608,7 +1608,7 @@
return;
}
} else {
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|sa",
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|a",
&pattern, &pattern_len, &path, &path_len, &options) == FAILURE) {
return;
}
@@ -1696,7 +1696,7 @@
}
/* }}} */
-/* {{{ proto bool ZipArchive::addPattern(string pattern[, string path [, array options]])
+/* {{{ proto bool ZipArchive::addPattern(string pattern, string path [, array options])
Add files matching the pcre pattern. See php's pcre for the pattern syntax. */
static ZIPARCHIVE_METHOD(addPattern)
{
@@ -2576,7 +2576,7 @@
ZEND_ARG_INFO(0, options)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ziparchive_addpattern, 0, 0, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_ziparchive_addpattern, 0, 0, 2)
ZEND_ARG_INFO(0, pattern)
ZEND_ARG_INFO(0, path)
ZEND_ARG_INFO(0, options)
|