Skip to content

Commit 6f0f5d5

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: fix C90 compat
2 parents 4837bdb + 7687b8b commit 6f0f5d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_API.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,9 +1068,10 @@ static int zval_update_class_constant(zval **pp, int is_static, int offset TSRML
10681068
zend_hash_move_forward_ex(&ce->properties_info, &pos)) {
10691069
if (is_static == ((prop_info->flags & ZEND_ACC_STATIC) != 0) &&
10701070
offset == prop_info->offset) {
1071+
int ret;
10711072
zend_class_entry *old_scope = *scope;
10721073
*scope = prop_info->ce;
1073-
int ret = zval_update_constant(pp, (void*)1 TSRMLS_CC);
1074+
ret = zval_update_constant(pp, (void*)1 TSRMLS_CC);
10741075
*scope = old_scope;
10751076
return ret;
10761077
}

0 commit comments

Comments
 (0)