summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-21 15:36:33 +0200
committerAnatol Belski <ab@php.net>2014-08-21 15:36:33 +0200
commit5d62cf2f7de69ff681795e22471d9d749bcdfda7 (patch)
treecf5a13647c65b519d30f88309b17eb2233831f74 /ext/spl
parentdaa0f094cf370900ab2c27242398a0a6a6c718c1 (diff)
downloadphp-git-5d62cf2f7de69ff681795e22471d9d749bcdfda7.tar.gz
fix zpp
Diffstat (limited to 'ext/spl')
-rw-r--r--ext/spl/spl_array.c2
-rw-r--r--ext/spl/spl_directory.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 46875cd471..23ee137064 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 5e3edd65d1..de8cff4ab0 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;
}
} /* }}} */