summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-09-21 00:46:22 +0000
committerZeev Suraski <zeev@php.net>1999-09-21 00:46:22 +0000
commit9f1d0dec47fdc0d7a50e39448a3db7dfa5e070b3 (patch)
tree59591e5336d6b15f3684154c7c2e17bf16f8396f /Zend/zend_builtin_functions.c
parent1324095627e049fe0d7ce8be4558b5556d26d24b (diff)
downloadphp-git-9f1d0dec47fdc0d7a50e39448a3db7dfa5e070b3.tar.gz
*** empty log message ***
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index a07746a1ff..ebe7a59bae 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -26,8 +26,8 @@
#include "zend_constants.h"
static ZEND_FUNCTION(zend_version);
-static ZEND_FUNCTION(zend_num_args);
-static ZEND_FUNCTION(zend_get_arg);
+static ZEND_FUNCTION(uf_num_args);
+static ZEND_FUNCTION(uf_get_arg);
static ZEND_FUNCTION(strlen);
static ZEND_FUNCTION(strcmp);
static ZEND_FUNCTION(strcasecmp);
@@ -42,8 +42,8 @@ static ZEND_FUNCTION(leak);
static zend_function_entry builtin_functions[] = {
ZEND_FE(zend_version, NULL)
- ZEND_FE(zend_num_args, NULL)
- ZEND_FE(zend_get_arg, NULL)
+ ZEND_FE(uf_num_args, NULL)
+ ZEND_FE(uf_get_arg, NULL)
ZEND_FE(strlen, NULL)
ZEND_FE(strcmp, NULL)
ZEND_FE(strcasecmp, NULL)
@@ -71,26 +71,26 @@ ZEND_FUNCTION(zend_version)
}
-ZEND_FUNCTION(zend_num_args)
+ZEND_FUNCTION(uf_num_args)
{
void **p;
int arg_count;
ELS_FETCH();
p = EG(argument_stack).top_element-1;
- arg_count = (ulong) *p; /* this is the amount of arguments passed to zend_num_args(); */
+ arg_count = (ulong) *p; /* this is the amount of arguments passed to uf_num_args(); */
p = EG(argument_stack).top_element-1-arg_count-1;
if (p>=EG(argument_stack).elements) {
RETURN_LONG((ulong) *p);
} else {
- zend_error(E_WARNING, "zend_num_args(): Called from the global scope - no function context");
+ zend_error(E_WARNING, "uf_num_args(): Called from the global scope - no function context");
RETURN_LONG(-1);
}
}
-ZEND_FUNCTION(zend_get_arg)
+ZEND_FUNCTION(uf_get_arg)
{
void **p;
int arg_count;
@@ -106,7 +106,7 @@ ZEND_FUNCTION(zend_get_arg)
requested_offset = (*z_requested_offset)->value.lval;
p = EG(argument_stack).top_element-1;
- arg_count = (ulong) *p; /* this is the amount of arguments passed to zend_num_args(); */
+ arg_count = (ulong) *p; /* this is the amount of arguments passed to uf_num_args(); */
p = EG(argument_stack).top_element-1-arg_count-1;
if (p<EG(argument_stack).elements) {
@@ -115,7 +115,7 @@ ZEND_FUNCTION(zend_get_arg)
arg_count = (ulong) *p;
if (requested_offset>arg_count) {
- zend_error(E_WARNING, "zend_get_arg(): Only %d arguments passed to function (argument %d requested)", arg_count, requested_offset);
+ zend_error(E_WARNING, "uf_get_arg(): Only %d arguments passed to function (argument %d requested)", arg_count, requested_offset);
RETURN_FALSE;
}