summaryrefslogtreecommitdiff
path: root/Zend/zend_execute.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-01 18:54:01 +0000
committerZeev Suraski <zeev@php.net>2000-02-01 18:54:01 +0000
commit39adeaf4f43c41b72aa667cd0dd1cbc424c95e5b (patch)
tree36079d6bd9f53063ce9d0eae81376cb898105ee4 /Zend/zend_execute.c
parent01e6ca33ab12aad3c02565620dcc1b635590aa82 (diff)
downloadphp-git-39adeaf4f43c41b72aa667cd0dd1cbc424c95e5b.tar.gz
Fix warning
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r--Zend/zend_execute.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 61b64d46de..3edd57c948 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -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;
}
}