summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create branch 'PHP_5'.PHP-5SVN Migration2003-02-271-3759/+0
|
* additional speedup for array_shift(). No need to rehash if the removed element'sAndrey Hristov2003-02-221-2/+8
| | | | | | | key is not scalar and elements with scalar keys are already well numbered (sequentially from 0) for some reason. This is the case if the leading elements have no scalar indexes.
* rehash only in case something is changed.Andrey Hristov2003-02-221-1/+3
| | | | | | #lowers the execution time in half on my machine on array with 1000 elements #with nonscalar keys. Maybe it can be optimized further.
* - Fixed bug #22088 (array_shift() leaves next index to be +1 too much)foobar2003-02-061-2/+3
|
* Added array_walk_recursive() function that can apply array_walk recursivelyIlia Alshanetsky2003-02-051-24/+70
| | | | | to an array.
* - Fixed bug: #21998 (array_pop() did not reset the current array position)foobar2003-02-031-0/+2
| | | | | # This behaves now same as in PHP 4.2.3
* zend_error -> php_error_docref.Ilia Alshanetsky2003-01-241-2/+1
|
* ARG_COUNT(ht) -> ZEND_NUM_ARGS().Ilia Alshanetsky2003-01-211-2/+2
|
* added array_combine().Andrey Hristov2003-01-131-0/+42
| | | | | | | | Creates an array by using the elements of the first parameter as keys and the elements of the second as correspoding keys. Error is thrown in case the arrays has different number of elements. Number of elements 0 is not valid for both parameters.
* Fixed small leaks in array_map() in case the first parameter is NULL likeMoriyoshi Koizumi2003-01-031-0/+3
| | | | | array_map(NULL, array(...));
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Make range operate on the copies of the parameters rather then modify theIlia Alshanetsky2002-12-251-7/+7
| | | | | actual parameters.
* When low & high are the same return an array containing the low value.Ilia Alshanetsky2002-12-201-31/+86
| | | | | | | Added support for float values and handling of numeric values being passed as strings. Added a test case for range().
* @- Let array_search() accept objects as a needle under ZendEngine2. (Moriyoshi)Moriyoshi Koizumi2002-12-091-1/+3
|
* Fixed bug #20865, array_key_exists() could not locate NULL keys.Ilia Alshanetsky2002-12-061-0/+5
|
* Remove pointless checks for array_init() return values.Ilia Alshanetsky2002-12-051-6/+2
|
* Fixed segfaults of array_walk() when keys are passed to cb by reference.Moriyoshi Koizumi2002-12-041-7/+5
| | | | | Fixed bug #12776.
* Fixed leaks in array_walk()Moriyoshi Koizumi2002-12-031-1/+1
|
* Improved the error reporting portion of array_walk() as suggested by MarkusMoriyoshi Koizumi2002-11-261-29/+7
|
* Prevent too many error reports from being displayedMoriyoshi Koizumi2002-11-261-0/+1
|
* Fixed incorrect error messages of array_walk() in case the callback isMoriyoshi Koizumi2002-11-261-1/+30
| | | | | specified in an array form
* Fixed some odd behaviours of range()Moriyoshi Koizumi2002-11-231-5/+25
|
* Fixed bug #20381Moriyoshi Koizumi2002-11-151-0/+1
|
* @- Added an optional "step" parameter to range(). (Jon)Jon Parise2002-11-141-25/+37
|
* Added GLOB_ONLYDIR and GLOB_BRACE for compatiable systems for the glob()John Coggeshall2002-11-131-1/+1
| | | | | | | | | | function. Modified the layout and some minor logic in the experimental webHarness() test class Added Whitespace accidently to array.c :)
* Fixed a memory leak in array_fill().Ilia Alshanetsky2002-11-051-1/+4
| | | | | | | The refcount hack is now done for ZE1 only and is slightly faster then the original. After this patch array_fill() can consistently create arrays with >65k elements.
* revert patchSterling Hughes2002-10-101-37/+57
|
* clean these functions up using zend_parse_parameters and nuke the use ofSterling Hughes2002-10-091-57/+37
| | | | | HASH_OF() which is inappropriate in these cases...
* small cleanups...Sterling Hughes2002-10-091-4/+1
|
* ws fixes.Andrey Hristov2002-09-211-35/+38
| | | | | #hope not to be flamed :) what a wonderful day.
* New function added - array_intersect_assoc() similar to array_intersect()Andrey Hristov2002-09-211-10/+56
| | | | | | | but the keys are also used in the comparison. So the result is a subset of the result of array_intersect(). Test will be committed too.
* Fixing my zts fix.Andrey Hristov2002-09-121-3/+3
| | | | | #Sorry Edin
* Removed magic numbers about the behavior of php_array_diff - proposed byAndrey Hristov2002-09-121-13/+16
| | | | | | | Andi and Jon Parise. #It is strange that I commited ZTS code but after that Edin fixed ZTS build #when I updated - it wasn't ZTS. hmmm. anyway fixing ZTS build.
* Fix ZTS build.Edin Kadribasic2002-09-111-3/+3
|
* - Little whitespace changesDerick Rethans2002-09-111-20/+30
|
* New function added : array_diff_assoc() . Like array_diff() but doesAndrey Hristov2002-09-111-11/+55
| | | | | | additional checks on key values. Test script will be added too. #My first patch . it feels strange :)
* Fixed ZTS build.Edin Kadribasic2002-09-101-4/+4
|
* @- Fixed array_merge_recursive() to avoid problems with merging cyclicalAndrei Zmievski2002-09-101-3/+11
| | | | | @ arrays (bug #16064). (Andrei)
* @- Added ability to extract() variables as references via OR'able EXTR_REFSAndrei Zmievski2002-09-091-4/+29
| | | | | @ flag. (Andrei)
* php_error_docrefMarcus Boerger2002-08-241-77/+61
| | | | | #New conversion available at: http://docref.txt.marcus-boerger.de
* Fixes array test 004.phpt. Nice copy paste error.Marcus Boerger2002-08-211-1/+1
|
* Fix for bug #18401, makes shuffle() properly generate all possibilities.Dan Kalowsky2002-08-151-6/+5
| | | | | Patch provided by Adam Trachtenberg <adam@trachtenberg.com>
* one last fix for array_shiftBrad LaFountain2002-08-031-0/+1
|
* array_pop wasnt setting next indexBrad LaFountain2002-08-011-13/+10
|
* That was not correct..foobar2002-08-011-3/+0
|
* Reset index when doing array_pop()foobar2002-08-011-1/+4
|
* Nuke compile warning.foobar2002-08-011-1/+2
|
* - Removed the DOS line endingsfoobar2002-08-011-1/+1
| | | | | | - Changed the '//' comment (this is C, not C++) to /* */ # Brad, use some editor which works..
* made array_shift re-index like it did before previous fixBrad LaFountain2002-08-011-6/+21
|
* Reverted the patch..it breaks the original behaviour of at least array_shift.foobar2002-07-311-4/+5
|