From: Aaron Piotrowski Date: Wed, 29 Jun 2016 15:02:17 +0000 (-0500) Subject: Return null instead of false X-Git-Tag: php-7.1.0alpha3~25^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9638e45d2f4cf0bb63e5189fccacbd624cba37be;p=php Return null instead of false --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index e76ca7f723..99fa6c0499 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -3697,7 +3697,7 @@ PHP_METHOD(DateTimeZone, __set_state) HashTable *myht; if (zend_parse_parameters(ZEND_NUM_ARGS(), "a", &array) == FAILURE) { - RETURN_FALSE; + return; } myht = Z_ARRVAL_P(array); @@ -3707,7 +3707,6 @@ PHP_METHOD(DateTimeZone, __set_state) if(php_date_timezone_initialize_from_hash(&return_value, &tzobj, myht) != SUCCESS) { zend_throw_error(NULL, "Timezone initialization failed"); zval_dtor(return_value); - RETURN_FALSE; } } /* }}} */ @@ -3726,7 +3725,6 @@ PHP_METHOD(DateTimeZone, __wakeup) if(php_date_timezone_initialize_from_hash(&return_value, &tzobj, myht) != SUCCESS) { zend_throw_error(NULL, "Timezone initialization failed"); - RETURN_FALSE; } } /* }}} */