com php-src: fix zpp: ext/spl/spl_array.c ext/spl/spl_d irectory.c
| From: | Anatol Belski | Date: | Thu, 21 Aug 2014 13:36:33 +0000 |
| Subject: | com php-src: fix zpp: ext/spl/spl_array.c ext/spl/spl_d irectory.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80704@lists.php.net to get a copy of this message | ||
Commit: 5d62cf2f7de69ff681795e22471d9d749bcdfda7
Author: Anatol Belski <ab@php.net> Thu, 21 Aug 2014 15:36:33 +0200
Parents: daa0f094cf370900ab2c27242398a0a6a6c718c1
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5d62cf2f7de69ff681795e22471d9d749bcdfda7
Log:
fix zpp
Changed paths:
M ext/spl/spl_array.c
M ext/spl/spl_directory.c
Diff:
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 46875cd..23ee137 100644
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -1235,7 +1235,7 @@ SPL_METHOD(Array, __construct)
intern = Z_SPLARRAY_P(object);
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|lC", &array, &ar_flags,
&ce_get_iterator) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|iC", &array, &ar_flags,
&ce_get_iterator) == FAILURE) {
zend_restore_error_handling(&error_handling TSRMLS_CC);
return;
}
diff --git a/ext/spl/spl_directory..c b/ext/spl/spl_directory.c
index 5e3edd6..de8cff4 100644
--- a/ext/spl/spl_directory.c
+++ b/ext/spl/spl_directory.c
@@ -2489,7 +2489,7 @@ SPL_METHOD(SplFileObject, setFlags)
{
spl_filesystem_object *intern = Z_SPLFILESYSTEM_P(getThis());
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &intern->flags) ==
FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i", &intern->flags) ==
FAILURE) {
return;
}
} /* }}} */