summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2016-06-29 10:02:17 -0500
committerAaron Piotrowski <aaron@trowski.com>2016-06-29 10:02:17 -0500
commit9638e45d2f4cf0bb63e5189fccacbd624cba37be (patch)
tree9ec66544b3f5679b5420ec31ac3d7129d5f75972 /ext
parente4b1bfc0757447b1b53adfb61d15e367e96f6a4d (diff)
downloadphp-git-9638e45d2f4cf0bb63e5189fccacbd624cba37be.tar.gz
Return null instead of false
Diffstat (limited to 'ext')
-rw-r--r--ext/date/php_date.c4
1 files changed, 1 insertions, 3 deletions
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;
}
}
/* }}} */