Skip to content

Commit

Permalink
move declaration of vars to top
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdxr authored and krakjoe committed Nov 13, 2016
1 parent 9ad2083 commit 0bd6395
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ext/date/php_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 0bd6395

Please sign in to comment.