summaryrefslogtreecommitdiff
path: root/Zend/zend_string.h
diff options
context:
space:
mode:
authorGopal Vijayaraghavan <gopalv@php.net>2011-07-28 03:03:06 +0000
committerGopal Vijayaraghavan <gopalv@php.net>2011-07-28 03:03:06 +0000
commit8089b31002f73bdf488da444a0c634d36928852f (patch)
tree25239c0cc974f70b1e332bc87c506a7c96677eee /Zend/zend_string.h
parent7b9071f71d14ae17813a931b80463ff4b26975c3 (diff)
downloadphp-git-8089b31002f73bdf488da444a0c634d36928852f.tar.gz
merge to trunk - Allow zend_is_interned_string to be pluggable
Diffstat (limited to 'Zend/zend_string.h')
-rw-r--r--Zend/zend_string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_string.h b/Zend/zend_string.h
index a130fbcc38..5dcc950faf 100644
--- a/Zend/zend_string.h
+++ b/Zend/zend_string.h
@@ -24,6 +24,7 @@
#include "zend.h"
ZEND_API extern const char *(*zend_new_interned_string)(const char *str, int len, int free_src TSRMLS_DC);
+ZEND_API extern zend_bool (*zend_is_interned_string)(const char *str TSRMLS_DC);
ZEND_API extern void (*zend_interned_strings_snapshot)(TSRMLS_D);
ZEND_API extern void (*zend_interned_strings_restore)(TSRMLS_D);
@@ -33,7 +34,7 @@ void zend_interned_strings_dtor(TSRMLS_D);
#ifndef ZTS
#define IS_INTERNED(s) \
- (((s) >= CG(interned_strings_start)) && ((s) < CG(interned_strings_end)))
+ (zend_is_interned_string ? zend_is_interned_string((s) TSRMLS_CC) : 0)
#else