Browse Source

Changed array_subtract to array_diff

PHP-4.0.5
Stig Venaas 26 years ago
parent
commit
f18b903d5f
  1. 4
      ext/standard/array.c
  2. 2
      ext/standard/basic_functions.c
  3. 2
      ext/standard/php_array.h

4
ext/standard/array.c

@ -2291,10 +2291,10 @@ out:
}
/* }}} */
/* {{{ proto array array_subtract(array arr1, array arr2 [, ...])
/* {{{ proto array array_diff(array arr1, array arr2 [, ...])
Returns the entries of arr1 that have values which are not present in
any of the others arguments */
PHP_FUNCTION(array_subtract)
PHP_FUNCTION(array_diff)
{
zval ***args = NULL;
HashTable *hash;

2
ext/standard/basic_functions.c

@ -509,7 +509,7 @@ function_entry basic_functions[] = {
PHP_FE(array_rand, NULL)
PHP_FE(array_unique, NULL)
PHP_FE(array_intersect, NULL)
PHP_FE(array_subtract, NULL)
PHP_FE(array_diff, NULL)
/* aliases from array.c */
PHP_FALIAS(pos, current, first_arg_force_ref)

2
ext/standard/php_array.h

@ -71,7 +71,7 @@ PHP_FUNCTION(array_flip);
PHP_FUNCTION(array_rand);
PHP_FUNCTION(array_unique);
PHP_FUNCTION(array_intersect);
PHP_FUNCTION(array_subtract);
PHP_FUNCTION(array_diff);
HashTable* php_splice(HashTable *, int, int, zval ***, int, HashTable **);
int multisort_compare(const void *a, const void *b);

Loading…
Cancel
Save