com php-src: Merge branch 'PHP-5.6': ext/date/php_date.c

From: Date: Fri, 27 Feb 2015 03:13:07 +0000
Subject: com php-src: Merge branch 'PHP-5.6': ext/date/php_date.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85097@lists.php.net to get a copy of this message
Commit: 5b8a504519ddf6fb2fb050070ff823f07fb7a406 Author: Xinchen Hui <laruence@php.net> Fri, 27 Feb 2015 11:13:07 +0800 Parents: 2bb9a591758ff39fe5dbeca7be146b9549da4e48 2d1a3ecd278ace48a941201858ce194747c9cb4f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5b8a504519ddf6fb2fb050070ff823f07fb7a406 Log: Merge branch 'PHP-5.6' Conflicts: ext/date/php_date.c Changed paths: MM ext/date/php_date.c Diff: diff --cc ext/date/php_date.c index 4b6deaf,a3f8735..fbc4f85 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@@ -3660,17 -3735,14 +3660,20 @@@ PHP_METHOD(DateTimeZone, __construct } /* }}} */ -static int php_date_timezone_initialize_from_hash(zval **return_value, php_timezone_obj **tzobj, HashTable *myht TSRMLS_DC) +static int php_date_timezone_initialize_from_hash(zval **return_value, php_timezone_obj **tzobj, HashTable *myht) /* {{{ */ { - zval **z_timezone = NULL; - zval **z_timezone_type = NULL; + zval *z_timezone; + zval *z_timezone_type; - if ((z_timezone_type = zend_hash_str_find(myht, "timezone_type", sizeof("timezone_type")-1)) != NULL) { - if ((z_timezone = zend_hash_str_find(myht, "timezone", sizeof("timezone")-1)) != NULL) { - if(Z_TYPE_P(z_timezone_type) != IS_LONG) { - if (zend_hash_find(myht, "timezone_type", 14, (void**) &z_timezone_type) == SUCCESS && Z_TYPE_PP(z_timezone_type) == IS_LONG) { - if (zend_hash_find(myht, "timezone", 9, (void**) &z_timezone) == SUCCESS && Z_TYPE_PP(z_timezone) == IS_STRING) { - if (SUCCESS == timezone_initialize(*tzobj, Z_STRVAL_PP(z_timezone) TSRMLS_CC)) { ++ if ((z_timezone_type = zend_hash_str_find(myht, "timezone_type", sizeof("timezone_type") - 1)) != NULL) { ++ if ((z_timezone = zend_hash_str_find(myht, "timezone", sizeof("timezone") - 1)) != NULL) { ++ if (Z_TYPE_P(z_timezone_type) != IS_LONG) { ++ return FAILURE; ++ } ++ if (Z_TYPE_P(z_timezone) != IS_STRING) { + return FAILURE; + } + if (SUCCESS == timezone_initialize(*tzobj, Z_STRVAL_P(z_timezone))) { return SUCCESS; } }

« previous php.cvs (#85097) next »