diff options
| author | jvoisin | 2020-12-31 16:36:18 +0100 |
|---|---|---|
| committer | jvoisin | 2020-12-31 16:45:06 +0100 |
| commit | a6c6934433979796a6c490899e9d21acf6b50571 (patch) | |
| tree | 6ce4dcc6283044599a6a6409df3c9a82402f9c87 /src/sp_var_value.c | |
| parent | 53f83f80d87b80408d14f75c1364cf6ba233c7e5 (diff) | |
Enabled matching on local var in php8
PHP8 failed hard when it couldn't find the local variable
we're looking for.
using ZEND_FETCH_CLASS_SILENT makes it silent.
Diffstat (limited to 'src/sp_var_value.c')
| -rw-r--r-- | src/sp_var_value.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_var_value.c b/src/sp_var_value.c index 7f08c46..8109377 100644 --- a/src/sp_var_value.c +++ b/src/sp_var_value.c | |||
| @@ -50,7 +50,7 @@ static zval *get_local_var(zend_execute_data *ed, const char *var_name) { | |||
| 50 | 50 | ||
| 51 | static zval *get_constant(const char *value) { | 51 | static zval *get_constant(const char *value) { |
| 52 | zend_string *name = zend_string_init(value, strlen(value), 0); | 52 | zend_string *name = zend_string_init(value, strlen(value), 0); |
| 53 | zval *zvalue = zend_get_constant_ex(name, NULL, 0); | 53 | zval *zvalue = zend_get_constant_ex(name, NULL, ZEND_FETCH_CLASS_SILENT); |
| 54 | 54 | ||
| 55 | zend_string_release(name); | 55 | zend_string_release(name); |
| 56 | return zvalue; | 56 | return zvalue; |
