com php-src: fix pcre usage in spl: ext/spl/spl_iterators.c

From: Date: Fri, 23 Aug 2013 13:47:18 +0000
Subject: com php-src: fix pcre usage in spl: ext/spl/spl_iterators.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73593@lists.php.net to get a copy of this message
Commit: 2a28a30c4d0b7ab07f1960ce76f573168700fb45 Author: Anatol Belski <ab@php.net> Fri, 23 Aug 2013 06:47:18 -0700 Parents: f2a4f31bf4ecb07324834783dc82fe8115a549cd Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2a28a30c4d0b7ab07f1960ce76f573168700fb45 Log: fix pcre usage in spl Changed paths: M ext/spl/spl_iterators.c Diff: diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index e3046f0..2796f48 100644 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -1079,9 +1079,9 @@ SPL_METHOD(RecursiveTreeIterator, setPostfix) { spl_recursive_it_object *object = (spl_recursive_it_object*)zend_object_store_get_object(getThis() TSRMLS_CC); char* postfix; - int postfix_len; + zend_str_size_int postfix_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &postfix, &postfix_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &postfix, &postfix_len) == FAILURE) { return; } @@ -1967,7 +1967,8 @@ SPL_METHOD(RegexIterator, accept) spl_dual_it_object *intern; char *subject, *result; zend_str_size_int subject_len; - int use_copy, count = 0, result_len; + int use_copy, count = 0; + zend_str_size_int result_len; zval *subject_ptr, subject_copy, zcount, *replacement, tmp_replacement; if (zend_parse_parameters_none() == FAILURE) {

« previous php.cvs (#73593) next »