summaryrefslogtreecommitdiff
path: root/processor
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2015-04-18 13:25:48 +0000
committerXuefer <xuefer@gmail.com>2015-04-18 13:25:48 +0000
commitb2655aeecdaef9d56dd45e5566430d5beedbc022 (patch)
tree0b238e57e57dec9ea0e0bdb478f79e887c86a866 /processor
parent8443a1aa2b93adca0a572abc14070568a3f4be22 (diff)
downloadxcache-b2655aeecdaef9d56dd45e5566430d5beedbc022.tar.gz
xcache-b2655aeecdaef9d56dd45e5566430d5beedbc022.zip
phpdop: update for new struct layout
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1587 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor')
-rw-r--r--processor/processor.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/processor/processor.m4 b/processor/processor.m4
index 2b8f193..e2ab934 100644
--- a/processor/processor.m4
+++ b/processor/processor.m4
@@ -662,10 +662,16 @@ define(`UNION_znode_op', `dnl {{{
', `
IFDASM(`{
zval *zv;
- zval *srczv = &dasm->active_op_array_src->literals[SRC(`$1.constant')].constant;
+ zval *srczv;
+ srczv = &dasm->active_op_array_src->literals[SRC(`$1.constant')].constant;
+ if (Z_TYPE_P(srczv) == IS_STRING) {
+ size_t index = SRC(`$1.constant');
+ fprintf(stderr, "%p %p %s\n", srczv, Z_STRVAL_P(srczv), Z_STRVAL_P(srczv));
+ }
ALLOC_ZVAL(zv);
MAKE_COPY_ZVAL(&srczv, zv);
add_assoc_zval_ex(DST(), XCACHE_STRS("$1.constant"), zv);
+ add_assoc_long_ex(DST(), XCACHE_STRS("$1.var"), SRC(`$1.constant'));
}
', `
IFCOPY(`