com php-src: Return null instead of false: ext/date/php_date .c
| From: | Aaron Piotrowski | Date: | Wed, 29 Jun 2016 15:02:17 +0000 |
| Subject: | com php-src: Return null instead of false: ext/date/php_date .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92777@lists.php.net to get a copy of this message | ||
Commit: 9638e45d2f4cf0bb63e5189fccacbd624cba37be
Author: Aaron Piotrowski <aaron@trowski.com> Wed, 29 Jun 2016 10:02:17 -0500
Parents: e4b1bfc0757447b1b53adfb61d15e367e96f6a4d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9638e45d2f4cf0bb63e5189fccacbd624cba37be
Log:
Return null instead of false
Changed paths:
M ext/date/php_date.c
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index e76ca7f..99fa6c0 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;
}
}
/* }}} */