summaryrefslogtreecommitdiff
path: root/processor
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-09-18 11:48:00 +0000
committerXuefer <xuefer@gmail.com>2014-09-18 11:48:00 +0000
commit57b3038d5f40b7849ad66dcf3ae03f8eb445ae85 (patch)
tree74d7bdbde425b1cab43d3018f216d8f7e5f4de47 /processor
parentf6d26f8e82329b21c287f99998de9d9cdf91cda5 (diff)
downloadxcache-57b3038d5f40b7849ad66dcf3ae03f8eb445ae85.tar.gz
xcache-57b3038d5f40b7849ad66dcf3ae03f8eb445ae85.zip
typo
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1546 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor')
-rw-r--r--processor/head.m43
-rw-r--r--processor/processor.m46
2 files changed, 9 insertions, 0 deletions
diff --git a/processor/head.m4 b/processor/head.m4
index b42d7c0..e360836 100644
--- a/processor/head.m4
+++ b/processor/head.m4
@@ -18,6 +18,7 @@ EXPORT(`#include "xcache/xc_allocator.h"')
#include "xcache/xc_const_string.h"
#include "xcache/xc_utils.h"
#include "util/xc_align.h"
+#include "util/xc_trace.h"
#include "xcache_globals.h"
#if defined(HARDENING_PATCH_HASH_PROTECT) && HARDENING_PATCH_HASH_PROTECT
@@ -225,6 +226,7 @@ static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type,
}
if (zend_u_hash_find(&processor->strings, type, str, (uint) size, (void **) &pret) == SUCCESS) {
+ TRACE("found old string %s:%ld %p", str, size, *pret);
return *pret;
}
@@ -232,6 +234,7 @@ static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type,
ALLOC(ZSTR_V(ret), char, realsize)
memcpy(ZSTR_V(ret), ZSTR_V(str), realsize);
zend_u_hash_add(&processor->strings, type, str, (uint) size, (void *) &ret, sizeof(zstr), NULL);
+ TRACE("stored new string %s:%ld %p", str, size, ret);
return ret;
popdef(`__LINE__')
diff --git a/processor/processor.m4 b/processor/processor.m4
index 8402ebc..e2645af 100644
--- a/processor/processor.m4
+++ b/processor/processor.m4
@@ -163,7 +163,13 @@ dnl {{{ zvalue_value
case FLAG_IS_BC:
#endif
PROCESS(int, value.str.len)
+ IFRESTORE(`
+ TRACE("%p, %p, %d", src->value.str.val, processor->entry_php_src->filepath.str, src->value.str.val == processor->entry_php_src->filepath.str);
+ ')
PROC_STRING_L(value.str.val, value.str.len)
+ dnl IFSTORE(`
+ dnl TRACE("%s, %d", dst->value.str.val, dst->value.str.val == processor->entry_php_dst->filepath.str);
+ dnl ')
break;
#ifdef IS_UNICODE
case IS_UNICODE: