com php-src: Merge remote-tracking branch 'origin/str_size _and_int64_56_backport' into str_size _and_int64: ext/spl/spl_array.c

From: Date: Mon, 26 May 2014 06:39:06 +0000
Subject: com php-src: Merge remote-tracking branch 'origin/str_size _and_int64_56_backport' into str_size _and_int64: ext/spl/spl_array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78538@lists.php.net to get a copy of this message
Commit: a4a5e34ed9d79637d4e065a21dec7876617334f1 Author: Anatol Belski <ab@php.net> Mon, 26 May 2014 08:39:06 +0200 Parents: 63f57b59016f45796a915173c2904217375c63de 317e8058e0a2e401a1aadedd2d596f499c58691d Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a4a5e34ed9d79637d4e065a21dec7876617334f1 Log: Merge remote-tracking branch 'origin/str_size_and_int64_56_backport' into str_size_and_int64 * origin/str_size_and_int64_56_backport: (29 commits) Fixed issue #183 (TMP_VAR is not only used once) Fix broken Junit output with --disable-cgi Added folder mark Further test fixes for the fdb2709 breakage. Fix broken test caused by fdb2709. Fix run-tests.php with Valgrind >= 3.10.0. Add microseconds to the serialised form of DateTime objects. Improved test for bug #62479 fix typo in ODBC code Support for __debugInfo (Joe Watkins) Optimize ZEND_POW (Rouven Weßling) gcov: tentative fix for broken coverage data after fix for opcache coverage slightly hackish, but works. The idea is that we want to give priority to .gcda files in .libs dirs vs the files in the upper level dir gcov: tentative fix for broken coverage data after fix for opcache coverage slightly hackish, but works. The idea is that we want to give priority to .gcda files in .libs dirs vs the files in the upper level dir Prevent recursion in ZF2 Parameters class 5.5.14 now adding NEWS block for beta4 5.4.30 next enable email notifications update NEWS update NEWS ... Conflicts: ext/opcache/ZendAccelerator.h ext/spl/spl_array.c Bugs: https://bugs.php..net/183 https://bugs.php.net/62479 Changed paths: MM ext/spl/spl_array.c Diff: diff --cc ext/spl/spl_array.c index 52e854b,01ee1e2..b068452 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@@ -601,9 -601,9 +601,9 @@@ static int spl_array_has_dimension_ex(i zend_call_method_with_1_params(&object, Z_OBJCE_P(object), &intern->fptr_offset_has, "offsetExists", &rv, offset_tmp); zval_ptr_dtor(&offset_tmp); - if (rv && zend_is_true(rv)) { + if (rv && zend_is_true(rv TSRMLS_CC)) { zval_ptr_dtor(&rv); - if (check_empty == 2) { + if (check_empty != 1) { return 1; } else if (intern->fptr_offset_get) { value = spl_array_read_dimension_ex(1, object, offset, BP_VAR_R TSRMLS_CC); @@@ -658,16 -660,7 +660,7 @@@ } } - switch (check_empty) { - case 0: - return Z_TYPE_P(value) != IS_NULL; - case 2: - return 1; - case 1: - return zend_is_true(value TSRMLS_CC); - } - - return 0; - return check_empty ? zend_is_true(value) : Z_TYPE_P(value) != IS_NULL; ++ return check_empty ? zend_is_true(value TSRMLS_CC) : Z_TYPE_P(value) != IS_NULL; } /* }}} */ static int spl_array_has_dimension(zval *object, zval *offset, int check_empty TSRMLS_DC) /* {{{ */

« previous php.cvs (#78538) next »