summaryrefslogtreecommitdiff
path: root/Zend/zend_string.h
diff options
context:
space:
mode:
authorGopal Vijayaraghavan <gopalv@php.net>2011-07-27 23:34:49 +0000
committerGopal Vijayaraghavan <gopalv@php.net>2011-07-27 23:34:49 +0000
commitbe217d08a47e5613cfa3b91aea6a0959b97fc8eb (patch)
treec90995da31bee57c6d298553923b686bf2de0784 /Zend/zend_string.h
parent15383e046e27d211d8ac2d78719eb039ec968e9b (diff)
downloadphp-git-be217d08a47e5613cfa3b91aea6a0959b97fc8eb.tar.gz
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