summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>1999-06-09 15:39:56 +0000
committerAndrey Hristov <andrey@php.net>1999-06-09 15:39:56 +0000
commit835b0d8823a9a9fdb7b1903fcbe193256b5fe1a2 (patch)
tree11c68f6ddc57754e90f4940f0138cebf5521e3f8 /ext/standard
parent2a64925a6767dcc000d8d63c2fd717c83b239e9d (diff)
downloadphp-git-835b0d8823a9a9fdb7b1903fcbe193256b5fe1a2.tar.gz
*** empty log message ***
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/basic_functions.c48
-rw-r--r--ext/standard/basic_functions.h16
2 files changed, 32 insertions, 32 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 596225f3dc..e37fcbc741 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -297,15 +297,15 @@ function_entry basic_functions[] = {
PHP_FE(in_array, NULL)
PHP_FE(extract, NULL)
PHP_FE(compact, NULL)
- PHP_FE(push, first_arg_force_ref)
- PHP_FE(pop, first_arg_force_ref)
- PHP_FE(shift, first_arg_force_ref)
- PHP_FE(unshift, first_arg_force_ref)
- PHP_FE(splice, first_arg_force_ref)
- PHP_FE(slice, NULL)
+ PHP_FE(array_push, first_arg_force_ref)
+ PHP_FE(array_pop, first_arg_force_ref)
+ PHP_FE(array_shift, first_arg_force_ref)
+ PHP_FE(array_unshift, first_arg_force_ref)
+ PHP_FE(array_splice, first_arg_force_ref)
+ PHP_FE(array_slice, NULL)
PHP_FE(array_merge, NULL)
- PHP_FE(keys, NULL)
- PHP_FE(values, NULL)
+ PHP_FE(array_keys, NULL)
+ PHP_FE(array_values, NULL)
{NULL, NULL, NULL}
};
@@ -2520,9 +2520,9 @@ HashTable* _phpi_splice(HashTable *in_hash, int offset, int length,
/* }}} */
-/* {{{ proto int push(array stack, mixed var [, ...])
+/* {{{ proto int array_push(array stack, mixed var [, ...])
Pushes elements onto the end of the array */
-PHP_FUNCTION(push)
+PHP_FUNCTION(array_push)
{
zval **args, /* Function arguments array */
*stack, /* Input array */
@@ -2610,27 +2610,27 @@ static void _phpi_pop(INTERNAL_FUNCTION_PARAMETERS, int off_the_end)
/* }}} */
-/* {{{ proto mixed pop(array stack)
+/* {{{ proto mixed array_pop(array stack)
Pops an element off the end of the array */
-PHP_FUNCTION(pop)
+PHP_FUNCTION(array_pop)
{
_phpi_pop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
/* }}} */
-/* {{{ proto mixed shift(array stack)
+/* {{{ proto mixed array_shift(array stack)
Pops an element off the beginning of the array */
-PHP_FUNCTION(shift)
+PHP_FUNCTION(array_shift)
{
_phpi_pop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
/* }}} */
-/* {{{ proto int unshift(array stack, mixed var [, ...])
+/* {{{ proto int array_unshift(array stack, mixed var [, ...])
Pushes elements onto the beginning of the array */
-PHP_FUNCTION(unshift)
+PHP_FUNCTION(array_unshift)
{
zval **args, /* Function arguments array */
*stack; /* Input stack */
@@ -2672,10 +2672,10 @@ PHP_FUNCTION(unshift)
/* }}} */
-/* {{{ proto array splice(array input, int offset [, int length, mixed var [, ...] ])
+/* {{{ proto array array_splice(array input, int offset [, int length, mixed var [, ...] ])
Removes the elements designated by offset and length and replace them with
var's if supplied */
-PHP_FUNCTION(splice)
+PHP_FUNCTION(array_splice)
{
zval **args, /* Function arguments array */
*array; /* Input array */
@@ -2735,9 +2735,9 @@ PHP_FUNCTION(splice)
/* }}} */
-/* {{{ proto array slice(array input, int offset [, int length])
+/* {{{ proto array array_slice(array input, int offset [, int length])
Returns elements specified by offset and length */
-PHP_FUNCTION(slice)
+PHP_FUNCTION(array_slice)
{
zval *input, /* Input array */
*offset, /* Offset to get elements from */
@@ -2888,9 +2888,9 @@ PHP_FUNCTION(array_merge)
/* }}} */
-/* {{{ proto array keys(array input)
+/* {{{ proto array array_keys(array input)
Return just the keys from the input array */
-PHP_FUNCTION(keys)
+PHP_FUNCTION(array_keys)
{
zval *input, /* Input array */
**entry, /* An entry in the input array */
@@ -2941,9 +2941,9 @@ PHP_FUNCTION(keys)
/* }}} */
-/* {{{ proto array values(array input)
+/* {{{ proto array array_values(array input)
Return just the values from the input array */
-PHP_FUNCTION(values)
+PHP_FUNCTION(array_values)
{
zval *input, /* Input array */
**entry; /* An entry in the input array */
diff --git a/ext/standard/basic_functions.h b/ext/standard/basic_functions.h
index 35c038d0b3..ab1fe02203 100644
--- a/ext/standard/basic_functions.h
+++ b/ext/standard/basic_functions.h
@@ -122,15 +122,15 @@ PHP_FUNCTION(function_exists);
PHP_FUNCTION(in_array);
PHP_FUNCTION(extract);
PHP_FUNCTION(compact);
-PHP_FUNCTION(push);
-PHP_FUNCTION(pop);
-PHP_FUNCTION(shift);
-PHP_FUNCTION(unshift);
-PHP_FUNCTION(splice);
-PHP_FUNCTION(slice);
+PHP_FUNCTION(array_push);
+PHP_FUNCTION(array_pop);
+PHP_FUNCTION(array_shift);
+PHP_FUNCTION(array_unshift);
+PHP_FUNCTION(array_splice);
+PHP_FUNCTION(array_slice);
PHP_FUNCTION(array_merge);
-PHP_FUNCTION(keys);
-PHP_FUNCTION(values);
+PHP_FUNCTION(array_keys);
+PHP_FUNCTION(array_values);
#if HAVE_PUTENV
typedef struct {