summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-04-30 18:32:42 +0400
committerDmitry Stogov <dmitry@zend.com>2014-04-30 18:32:42 +0400
commit17d027ed47c1f07b397a611431d28ad0e0107146 (patch)
treeda6cadcd3ca0cad02dd4ff39f027575070873cbd /ext/date/php_date.c
parent6a911e833f6b6dcac669a60808e96dc2c4f391d3 (diff)
downloadphp-git-17d027ed47c1f07b397a611431d28ad0e0107146.tar.gz
Split IS_BOOL into IS_FALSE and IS_TRUE
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index a0a189bbe4..439621f5e5 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -4888,8 +4888,8 @@ static int php_date_period_initialize_from_hash(php_period_obj *period_obj, Hash
ht_entry = zend_hash_str_find(myht, "include_start_date", sizeof("include_start_date")-1);
if (ht_entry &&
- Z_TYPE_P(ht_entry) == IS_BOOL) {
- period_obj->include_start_date = Z_BVAL_P(ht_entry);
+ (Z_TYPE_P(ht_entry) == IS_FALSE || Z_TYPE_P(ht_entry) == IS_TRUE)) {
+ period_obj->include_start_date = (Z_TYPE_P(ht_entry) == IS_TRUE);
} else {
return 0;
}