summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-12-07 19:28:13 +0000
committerSascha Schumann <sas@php.net>2000-12-07 19:28:13 +0000
commitacdae3a14931bfa926655e3159140741d27cf544 (patch)
treea6432a0d864fa60de100bd985adb8da5418846e5 /Zend
parent9147a81a19739464cbcc008a08d143d8aa1848c4 (diff)
downloadphp-git-acdae3a14931bfa926655e3159140741d27cf544.tar.gz
Hardcode strlen due to problems on SCO OpenServer 5.0.4 which defines
strlen to __std_hdr_strlen.
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_builtin_functions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 057607f854..abb9d19a88 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -29,7 +29,7 @@ static ZEND_FUNCTION(zend_version);
static ZEND_FUNCTION(func_num_args);
static ZEND_FUNCTION(func_get_arg);
static ZEND_FUNCTION(func_get_args);
-static ZEND_FUNCTION(strlen);
+static ZEND_NAMED_FUNCTION(zend_if_strlen);
static ZEND_FUNCTION(strcmp);
static ZEND_FUNCTION(strncmp);
static ZEND_FUNCTION(strcasecmp);
@@ -74,7 +74,7 @@ static zend_function_entry builtin_functions[] = {
ZEND_FE(func_num_args, NULL)
ZEND_FE(func_get_arg, NULL)
ZEND_FE(func_get_args, NULL)
- ZEND_FE(strlen, NULL)
+ { "strlen", zend_if_strlen, NULL },
ZEND_FE(strcmp, NULL)
ZEND_FE(strncmp, NULL)
ZEND_FE(strcasecmp, NULL)
@@ -221,7 +221,7 @@ ZEND_FUNCTION(func_get_args)
/* {{{ proto int strlen(string str)
Get string length */
-ZEND_FUNCTION(strlen)
+ZEND_NAMED_FUNCTION(zend_if_strlen)
{
zval **str;