projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ad2083
)
move declaration of vars to top
author
jhdxr
<jhdxr@php.net>
Mon, 11 Jul 2016 13:12:23 +0000
(21:12 +0800)
committer
Joe Watkins
<krakjoe@php.net>
Sun, 13 Nov 2016 05:32:24 +0000
(
05:32
+0000)
ext/date/php_date.c
patch
|
blob
|
history
diff --git
a/ext/date/php_date.c
b/ext/date/php_date.c
index 4fead4a84d9d6c3c4ea0c7e38e6c07da41349bb4..558d6f8ba394bac57ecf9977ef31b99d976fac19 100644
(file)
--- a/
ext/date/php_date.c
+++ b/
ext/date/php_date.c
@@
-1973,7
+1973,9
@@
static int implement_date_interface_handler(zend_class_entry *interface, zend_cl
static int date_interval_has_property(zval *object, zval *member, int type, void **cache_slot) /* {{{ */
{
php_interval_obj *obj;
- zval tmp_member, *prop;
+ zval tmp_member;
+ zval rv;
+ zval *prop;
int retval = 0;
if (Z_TYPE_P(member) != IS_STRING) {
@@
-1993,7
+1995,6
@@
static int date_interval_has_property(zval *object, zval *member, int type, void
return retval;
}
- zval rv;
prop = date_interval_read_property(object, member, type, cache_slot, &rv);
if (prop != NULL) {