summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbstring.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-07-11 18:52:27 +0400
committerDmitry Stogov <dmitry@zend.com>2014-07-11 18:52:27 +0400
commit6c8db864e047271fed082562a183e141b40c130e (patch)
tree9fb02bb6ec3237df067e9def16632b6cb39e5316 /ext/mbstring/mbstring.c
parent27f38798a1963de1c60aae4ef8a3675138255574 (diff)
downloadphp-git-6c8db864e047271fed082562a183e141b40c130e.tar.gz
Implemented builtin instruction for strlen()
Diffstat (limited to 'ext/mbstring/mbstring.c')
-rw-r--r--ext/mbstring/mbstring.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index df264e02af..248bd98535 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -1619,6 +1619,7 @@ PHP_RINIT_FUNCTION(mbstring)
if (MBSTRG(func_overload)){
p = &(mb_ovld[0]);
+ CG(compiler_options) |= ZEND_COMPILE_NO_BUILTIN_STRLEN;
while (p->type > 0) {
if ((MBSTRG(func_overload) & p->type) == p->type &&
(orig = zend_hash_str_find_ptr(EG(function_table), p->save_func,
@@ -1687,6 +1688,7 @@ PHP_RSHUTDOWN_FUNCTION(mbstring)
}
p++;
}
+ CG(compiler_options) &= ~ZEND_COMPILE_NO_BUILTIN_STRLEN;
}
#if HAVE_MBREGEX