diff options
| author | slefevre | 2017-12-21 16:03:10 +0100 |
|---|---|---|
| committer | slefevre | 2017-12-21 16:03:10 +0100 |
| commit | 074b35d5320de0e27d0eabe13d11966c0f321050 (patch) | |
| tree | b69a172240907825c3ce11993632efbd431b3c25 /src/sp_var_value.c | |
| parent | ed041bdcf58b31e23c5ee8729d453d41bfbfbb7f (diff) | |
Refactor a bit
Diffstat (limited to 'src/sp_var_value.c')
| -rw-r--r-- | src/sp_var_value.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_var_value.c b/src/sp_var_value.c index 304ece9..7f74afa 100644 --- a/src/sp_var_value.c +++ b/src/sp_var_value.c | |||
| @@ -154,9 +154,9 @@ static zval *get_unknown_type(const char *restrict value, zval *zvalue, | |||
| 154 | if (ce) { | 154 | if (ce) { |
| 155 | zvalue = get_entry_hashtable(&ce->constants_table, value, strlen(value)); | 155 | zvalue = get_entry_hashtable(&ce->constants_table, value, strlen(value)); |
| 156 | ce = NULL; | 156 | ce = NULL; |
| 157 | } else if (zvalue && Z_TYPE_P(zvalue) == IS_OBJECT && value[0]) { | 157 | } else if (zvalue && Z_TYPE_P(zvalue) == IS_OBJECT) { |
| 158 | zvalue = get_object_property(ed, zvalue, value, is_param); | 158 | zvalue = get_object_property(ed, zvalue, value, is_param); |
| 159 | } else if (!tree->next && !zvalue) { | 159 | } else if (!zvalue) { |
| 160 | if (tree->type == CONSTANT) { | 160 | if (tree->type == CONSTANT) { |
| 161 | zvalue = get_constant(value); | 161 | zvalue = get_constant(value); |
| 162 | } | 162 | } |
