diff options
Diffstat (limited to 'src/sp_var_value.c')
| -rw-r--r-- | src/sp_var_value.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp_var_value.c b/src/sp_var_value.c index 9f656b7..268c3d1 100644 --- a/src/sp_var_value.c +++ b/src/sp_var_value.c | |||
| @@ -142,7 +142,8 @@ static zval *get_object_property(zend_execute_data *ed, zval *object, | |||
| 142 | if (!zvalue) { | 142 | if (!zvalue) { |
| 143 | len = strlen(class_name) + 3 + strlen(property); | 143 | len = strlen(class_name) + 3 + strlen(property); |
| 144 | char *private_property = emalloc(len); | 144 | char *private_property = emalloc(len); |
| 145 | snprintf(private_property, len, PRIVATE_PROP_FMT, 0, class_name, 0, property); | 145 | snprintf(private_property, len, PRIVATE_PROP_FMT, 0, class_name, 0, |
| 146 | property); | ||
| 146 | zvalue = get_entry_hashtable(array, private_property, len - 1); | 147 | zvalue = get_entry_hashtable(array, private_property, len - 1); |
| 147 | efree(private_property); | 148 | efree(private_property); |
| 148 | } | 149 | } |
