diff options
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 4f394df21a..e7a96af743 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1606,11 +1606,13 @@ ZEND_API int zend_set_local_var(zend_string *name, zval *value, int force) /* {{ if (force) { zend_array *symbol_table = zend_rebuild_symbol_table(); if (symbol_table) { - return zend_hash_update(symbol_table, name, value) ? SUCCESS : FAILURE; + zend_hash_update(symbol_table, name, value); + return SUCCESS; } } } else { - return (zend_hash_update_ind(execute_data->symbol_table, name, value) != NULL) ? SUCCESS : FAILURE; + zend_hash_update_ind(execute_data->symbol_table, name, value); + return SUCCESS; } } return FAILURE; @@ -1648,11 +1650,13 @@ ZEND_API int zend_set_local_var_str(const char *name, size_t len, zval *value, i if (force) { zend_array *symbol_table = zend_rebuild_symbol_table(); if (symbol_table) { - return zend_hash_str_update(symbol_table, name, len, value) ? SUCCESS : FAILURE; + zend_hash_str_update(symbol_table, name, len, value); + return SUCCESS; } } } else { - return (zend_hash_str_update_ind(execute_data->symbol_table, name, len, value) != NULL) ? SUCCESS : FAILURE; + zend_hash_str_update_ind(execute_data->symbol_table, name, len, value); + return SUCCESS; } } return FAILURE; |