com php-src: move declaration of vars to top: ext/date/php_da te.c

From: Date: Sun, 13 Nov 2016 05:32:24 +0000
Subject: com php-src: move declaration of vars to top: ext/date/php_da te.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95736@lists.php.net to get a copy of this message
Commit: 0bd63959c954cff6561739cf8a3d05a73d954835 Author: jhdxr <jhdxr@php.net> Mon, 11 Jul 2016 21:12:23 +0800 Committer: Joe Watkins <krakjoe@php.net> Sun, 13 Nov 2016 05:32:24 +0000 Parents: 9ad2083773ee5a0334f7d1c6ee10177b60ef3452 Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0bd63959c954cff6561739cf8a3d05a73d954835 Log: move declaration of vars to top Changed paths: M ext/date/php_date.c Diff: diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 4fead4a..558d6f8 100644 --- 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) {

« previous php.cvs (#95736) next »