mirror of https://github.com/deuill/go-php.git
Rename `context_bind_zval` to `context_bind_proxy` for consistency
This commit is contained in:
parent
6c0669dd67
commit
d64dade5fe
|
@ -95,7 +95,7 @@ void *context_eval(engine_context *context, char *script) {
|
|||
|
||||
void context_bind(engine_context *context, char *name, void *value) {
|
||||
engine_value *v = (engine_value *) value;
|
||||
context_bind_zval(name, v->internal);
|
||||
context_bind_proxy(name, v->internal);
|
||||
}
|
||||
|
||||
void context_destroy(engine_context *context) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#ifndef ___CONTEXT_H___
|
||||
#define ___CONTEXT_H___
|
||||
|
||||
static void context_bind_zval(char *name, zval *value);
|
||||
static void context_bind_proxy(char *name, zval *value);
|
||||
|
||||
#define CONTEXT_EXECUTE(o, v) do { \
|
||||
zend_op_array *oparr = EG(active_op_array); \
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#ifndef ___CONTEXT_H___
|
||||
#define ___CONTEXT_H___
|
||||
|
||||
static void context_bind_zval(char *name, zval *value);
|
||||
static void context_bind_proxy(char *name, zval *value);
|
||||
|
||||
#define CONTEXT_EXECUTE(o, v) do { \
|
||||
EG(no_extensions) = 1; \
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
// Use of this source code is governed by the MIT license that can be found in
|
||||
// the LICENSE file.
|
||||
|
||||
static void context_bind_zval(char *name, zval *value) {
|
||||
static void context_bind_proxy(char *name, zval *value) {
|
||||
ZEND_SET_SYMBOL(EG(active_symbol_table), name, value);
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
// Use of this source code is governed by the MIT license that can be found in
|
||||
// the LICENSE file.
|
||||
|
||||
static void context_bind_zval(char *name, zval *value) {
|
||||
static void context_bind_proxy(char *name, zval *value) {
|
||||
zend_hash_str_update(&EG(symbol_table), name, strlen(name), value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue