]> granicus.if.org Git - php/commitdiff
- MFH: Fixed strlen function entry (missing arginfo struct size, thanks Philip!)
authorFelipe Pena <felipe@php.net>
Sun, 16 Nov 2008 00:45:03 +0000 (00:45 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 16 Nov 2008 00:45:03 +0000 (00:45 +0000)
Zend/zend_builtin_functions.c

index 0e3dba84188a51c45630f8a3d95ddce025576fc6..557e0e07d8f204e71b9534978bbc1b2562cb2a14 100644 (file)
@@ -346,7 +346,7 @@ static const zend_function_entry builtin_functions[] = {
        ZEND_FE(func_num_args,          arginfo_func_num_args)
        ZEND_FE(func_get_arg,           arginfo_func_get_arg)
        ZEND_FE(func_get_args,          arginfo_func_get_args)
-       { "strlen", zend_if_strlen, arginfo_strlen },
+       {"strlen", zend_if_strlen,      arginfo_strlen, (zend_uint) (sizeof(arginfo_strlen) / sizeof(struct _zend_arg_info)-1), 0},
        ZEND_FE(strcmp,                         arginfo_strcmp)
        ZEND_FE(strncmp,                        arginfo_strncmp)
        ZEND_FE(strcasecmp,                     arginfo_strcasecmp)