summaryrefslogtreecommitdiff
path: root/ext/spl/spl_engine.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-08-21 00:10:49 +0000
committerMarcus Boerger <helly@php.net>2003-08-21 00:10:49 +0000
commit1cf91a7ac5f030a6e0e2cf2dec646dee2ad507d5 (patch)
tree11bd214615e2c7fdaef3f86d0710c070e5fe1878 /ext/spl/spl_engine.c
parentbef97f89a365b5df7b9168ce5abf9ffac5d6c8fb (diff)
downloadphp-git-1cf91a7ac5f030a6e0e2cf2dec646dee2ad507d5.tar.gz
Extensions that do opcode hooking must provide the removed functions/macros
themselves now.
Diffstat (limited to 'ext/spl/spl_engine.c')
-rwxr-xr-xext/spl/spl_engine.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/spl/spl_engine.c b/ext/spl/spl_engine.c
index 48a0f1b9de..349a599784 100755
--- a/ext/spl/spl_engine.c
+++ b/ext/spl/spl_engine.c
@@ -24,7 +24,6 @@
#include "php_ini.h"
#include "ext/standard/info.h"
#include "zend_compile.h"
-#include "zend_execute_locks.h"
#include "php_spl.h"
#include "spl_functions.h"
@@ -72,9 +71,9 @@ void spl_unlock_zval_ptr_ptr(znode *node, temp_variable *Ts TSRMLS_DC)
{
if (node->op_type==IS_VAR) {
if (T(node->u.var).var.ptr_ptr) {
- PZVAL_UNLOCK(*T(node->u.var).var.ptr_ptr);
+ spl_pzval_unlock_func(*T(node->u.var).var.ptr_ptr TSRMLS_CC);
} else if (T(node->u.var).EA.type==IS_STRING_OFFSET) {
- PZVAL_UNLOCK(T(node->u.var).EA.data.str_offset.str);
+ spl_pzval_unlock_func(T(node->u.var).EA.data.str_offset.str TSRMLS_CC);
}
}
}
@@ -93,7 +92,7 @@ zval * spl_get_zval_ptr(znode *node, temp_variable *Ts, zval **should_free TSRML
break;
case IS_VAR:
if (T(node->u.var).var.ptr) {
- PZVAL_UNLOCK(T(node->u.var).var.ptr);
+ spl_pzval_unlock_func(T(node->u.var).var.ptr TSRMLS_CC);
*should_free = 0;
return T(node->u.var).var.ptr;
} else {
@@ -116,7 +115,7 @@ zval * spl_get_zval_ptr(znode *node, temp_variable *Ts, zval **should_free TSRML
T->tmp_var.value.str.val = estrndup(&c, 1);
T->tmp_var.value.str.len = 1;
}
- PZVAL_UNLOCK(str);
+ spl_pzval_unlock_func(str TSRMLS_CC);
T->tmp_var.refcount=1;
T->tmp_var.is_ref=1;
T->tmp_var.type = IS_STRING;