summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Namespace protect mergesort (caused conflict on Darwin).Sascha Schumann2000-11-021-2/+2
|
* @- Fixed array_rand() to shuffle results when the number of requestedAndrei Zmievski2000-10-271-0/+7
| | | | | @ elements is the same as the number of elements in the array. (Andrei)
* Added array_sum() function.Andrei Zmievski2000-10-251-2/+37
|
* Fixed array_type_data_compare(). I want strings to always differ fromStig Venaas2000-10-221-3/+6
| | | | | numbers, but not say 7 and 7.0 to differ.
* Made array_unique use array_type_data_compare instead of array_data_compareStig Venaas2000-10-211-2/+2
|
* Added array_type_data_compare which is like array_data_compare butStig Venaas2000-10-211-61/+117
| | | | | | | compares type first. Also rewrote array_intersect and array_diff, so that the order is not changed. @- Made array_intersect and array_diff not alter order (Stig Venaas)
* - Change to Z_BVAL macroAndi Gutmans2000-09-191-1/+1
|
* - Fix warningsZeev Suraski2000-09-191-1/+1
| | | | | - Fix URL scanner startup crash
* Forgot to update proto.Andrei Zmievski2000-09-121-1/+1
|
* @- Added second argument to array_reverse() that indicatese whetherAndrei Zmievski2000-09-121-11/+23
| | | | | @ the original array keys should be preserved. (Andrei)
* @- Updated array_walk() to be able to accept array($obj, 'method')Andrei Zmievski2000-08-221-2/+9
| | | | | @ syntax for the walk function. (Andrei)
* typo fix in array_diff error message, fixes bug #6236Hartmut Holzgraefe2000-08-181-1/+1
|
* minor typo fix in protoHartmut Holzgraefe2000-08-181-1/+1
|
* ooops - theese new parameters are optionalHartmut Holzgraefe2000-08-041-6/+6
|
* added new second parameter to osrt functions in the protosHartmut Holzgraefe2000-08-041-6/+6
|
* Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.David Croft2000-07-241-1/+3
| | | | | | | | | Added a few RCS $Id$ tags. # Note: I have avoided changing any .h files if the corresponding .c file # had not already been changed as I am not sure if there are any legal # issues here. So some extensions still have PHP 3 headers.
* *** empty log message ***Andrei Zmievski2000-07-171-1/+1
|
* Updated comments.Andrei Zmievski2000-07-111-10/+10
|
* @- Improved array_multisort() to be able to specify sort type as well sortAndrei Zmievski2000-07-111-38/+70
| | | | | | @ order. Incidentally, it can be used to sort multi-dimensional arrays @ as well. (Andrei)
* Not every argument type is mixed.Egon Schmid2000-07-041-5/+5
|
* Missed a two liner.Egon Schmid2000-07-041-2/+1
|
* Oops, didn't mean to commit that.Andrei Zmievski2000-06-281-2/+2
|
* @- Added an optional parameter to preg_replace() that can be used toAndrei Zmievski2000-06-281-2/+2
| | | | | @ specify how many replacements to make. (Andrei)
* The second array_merge() is now array_merge_recursive().Egon Schmid2000-06-251-12/+11
|
* One more place.Andrei Zmievski2000-06-181-1/+1
|
* @- Modified in_array() to not touch array pointer. (Andrei)Andrei Zmievski2000-06-181-2/+3
|
* - Fix a couple of wranings in the FTP code and in parsedate.yZeev Suraski2000-06-171-2/+2
| | | | | | - Be safer with LC_MESSAGES - Align with the latest Zend change in call_user_function_ex()
* Forgot to set_compare_func in the new array functions, had only testedStig Venaas2000-06-111-0/+3
| | | | | with older source.
* Changed array_subtract to array_diffStig Venaas2000-06-101-2/+2
|
* Adding fuctions array_unique, array_intersect and array_subtract.Stig Venaas2000-06-101-0/+248
|
* - ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patchAndi Gutmans2000-06-051-61/+61
|
* \0 is part of they key, but not of the variableStanislav Malyshev2000-06-041-2/+2
|
* - Allow all functions that receive user-defined function callbacks to acceptZeev Suraski2000-06-031-3/+0
| | | | | | | | | an array that contains an object and a method name, in place of a function name, e.g. usort($array, array($obj, "ObjSort")) (I checked the code in array.c and basic_functions.c, other code which uses call_user_function() may still force the function_name argument to be of type IS_STRING, which prevents this feature from working - and is no longer necessary)
* @- Added third argument to in_array(). If it's true, then in_array()Andrei Zmievski2000-06-011-8/+15
| | | | | | | @ will use strict comparison instead of the default one. (Andrei) Fixes bug #4753
* @- Added array_merge_recursive() that will recursively merge valuesAndrei Zmievski2000-05-301-33/+58
| | | | | @ under the same keys. (Andrei)
* @ Fixed min()/max() segfault. (Andrei)Andrei Zmievski2000-05-241-0/+2
|
* Update the license with the new clause 6Zeev Suraski2000-05-181-2/+2
|
* (PHP array_multisort) Fix the array_size test.Andrei Zmievski2000-05-181-1/+1
|
* Update for sort functions - user can now specify sort type.Andrei Zmievski2000-05-181-24/+99
|
* @- Added array_rand() function. (Andrei)Andrei Zmievski2000-05-091-0/+79
|
* Fix an empty arrays condition and optimize a bit.Andrei Zmievski2000-04-281-0/+9
| | | | | | @ Fixed a crash in array_multisort() that happened when empty arrays @ were passed to it. (Andrei)
* @- array_walk() now automatically resets the array. (Andrei)Andrei Zmievski2000-04-131-0/+2
|
* Added natural comparison/sorting routines using code from Martin Pool.Andrei Zmievski2000-04-121-0/+93
| | | | | | | | | @- Added natural comparison/sorting routines strnatcmp(), strnatcasecmp(), @ natsort(), and natcasesort(). These are useful for comparing and sorting @ strings that contain numbers. Based on the code from Martin Pool @ <mbp@humbug.org.au>. See http://www.linuxcare.com.au/projects/natsort/ @ for more info on natural sorting. (Andrei)
* Return type was missing.Egon Schmid2000-04-041-1/+1
|
* #yikes stripes, didn't see that oneSterling Hughes2000-03-291-4/+2
| | | | | | #its time to go to bed Re-fixed return value of min and max
* 1. Holy protos Batman.Sterling Hughes2000-03-291-38/+80
| | | | | 2. Converted some functions from using "return" to RETURN_FALSE
* @- Fixed extract() for EXTR_PREFIX_SAME and EXTR_SKIP cases. (Andrei)Andrei Zmievski2000-03-241-5/+4
|
* @Cleaned up extension namespace (Stig)Stig Bakken2000-03-061-58/+2
| | | | | | Cleaned up extension namespace, and changed ext/standard into one single extension.
* @- Implemented default_charset and default_mimetype config directives (Stig)Stig Bakken2000-02-251-0/+7
| | | | | | Implemented default_charset and default_mimetype configuration directives. Started implementing ticks in PHP.
* There are more '|' and should be mixed.Egon Schmid2000-02-241-1/+1
|