mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fix warning
This commit is contained in:
parent
01e6ca33ab
commit
39adeaf4f4
@ -169,16 +169,15 @@ static inline zval *_get_object_zval_ptr(znode *node, temp_variable *Ts, int *sh
|
||||
|
||||
static inline zval **_get_zval_ptr_ptr(znode *node, temp_variable *Ts ELS_DC)
|
||||
{
|
||||
switch(node->op_type) {
|
||||
case IS_VAR:
|
||||
if (Ts[node->u.var].var.ptr_ptr) {
|
||||
PZVAL_UNLOCK(*Ts[node->u.var].var.ptr_ptr);
|
||||
} else if (Ts[node->u.var].EA.type==IS_STRING_OFFSET) {
|
||||
PZVAL_UNLOCK(Ts[node->u.var].EA.str);
|
||||
}
|
||||
return Ts[node->u.var].var.ptr_ptr;
|
||||
break;
|
||||
EMPTY_SWITCH_DEFAULT_CASE()
|
||||
if (node->op_type==IS_VAR) {
|
||||
if (Ts[node->u.var].var.ptr_ptr) {
|
||||
PZVAL_UNLOCK(*Ts[node->u.var].var.ptr_ptr);
|
||||
} else if (Ts[node->u.var].EA.type==IS_STRING_OFFSET) {
|
||||
PZVAL_UNLOCK(Ts[node->u.var].EA.str);
|
||||
}
|
||||
return Ts[node->u.var].var.ptr_ptr;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user