summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* fixed bugs 16063 and 16068Brad LaFountain2002-07-301-5/+4
| | | | | increased preformance of array_pop and array_shift
* Silence warningDerick Rethans2002-07-081-1/+1
|
* Unify error messagesDerick Rethans2002-07-081-60/+60
|
* - Fix for bug #14580: Made key() binary safeDerick Rethans2002-07-081-3/+4
|
* - Fix for bug #17654Derick Rethans2002-06-291-1/+1
|
* Made array_unique() always keep the first occurrences of duplicates,Stig Venaas2002-06-181-9/+20
| | | | | making the behavior easier to understand, and maybe more useful.
* - WS-fixesJan Lehnardt2002-06-181-59/+59
|
* - whitespace fixJan Lehnardt2002-06-101-1/+1
|
* fix the buildHarald Radi2002-06-101-15/+18
|
* Fix bug #7045: shuffle() now provides consistent distribution of valuesAndrei Zmievski2002-06-101-8/+52
| | | | | in the array.
* Fixed array_rand() on ZTS platforms.Edin Kadribasic2002-06-031-9/+1
| | | | | @- Fixed array_rand() on thread-safe platforms such as Windows. (Edin)
* Changing email address.Andrei Zmievski2002-05-131-1/+1
|
* Fix Bug #14795.Andrei Zmievski2002-04-241-8/+10
|
* Fix unwanted type conversion in array_merge_recursive (Bug #14990).Andrei Zmievski2002-04-241-0/+1
|
* Fix TSRMLS_CC.Sebastian Bergmann2002-03-121-1/+1
|
* Make use of TSRMLS_C/DYasuo Ohgaki2002-03-121-5/+3
|
* Fix php_splice() to work with large valuesZeev Suraski2002-03-011-1/+11
|
* - Add TSRMLS_FETCH()'s needed for the new object overloading in ZE2.Andi Gutmans2002-02-051-1/+3
|
* Converted extract() to use smart_str for variable name manipulation. ThisAndrei Zmievski2002-02-011-29/+31
| | | | | sped it up a bit.
* (extraxt) add EXTR_IF_EXISTS and EXTR_PREFIX_IF_EXISTS flagsRasmus Lerdorf2002-01-251-7/+24
| | | | | | | | | | | | @- Added EXTR_IF_EXISTS and EXTR_PREFIX_IF_EXISTS flags to extract() @ EXTR_IF_EXISTS only extracts a variable if it already exists @ EXTR_PREFIX_IF_EXISTS only extracts the variable if it exists and @ then it prepends the prefix to it. ie. if $PATH exists then @ extract($_ENV,EXTR_PREFIX_IF_EXISTS,'e') would result in $e_PATH @ This lets you do $a = $b = $c = true; extract($_REQUEST,EXTR_IF_EXISTS); @ and you only get the global request variables you have defined imported @ into your symbol table. (Rasmus)
* Fix the recursive counting, it was broken for associative or non-sequentialAndrei Zmievski2002-01-101-5/+8
| | | | | arrays. Also update NEWS file.
* - Fix bug introduced in earlier patchDerick Rethans2002-01-091-5/+10
|
* - Added extra parameter to count() that recursively counts elements in anDerick Rethans2001-12-291-15/+38
| | | | | | array and added is_array_multidimensional(). (patch by Vlad Bosinceanu <glipy@fx.ro>)
* @ Fix bug in krsort() where an extra character was being compared (Andi)Andi Gutmans2001-12-291-2/+2
| | | | | - Fix bug in krsort() where an extra character was being compared (Andi)
* Modified array_walk, arsort, asort, krsort, ksort, rsort, shuffle, sort,Zak Greant2001-12-221-115/+69
| | | | | | | | | | | | | | | | | | uasort, uksort and usort. Corrected prototype comments for all. Converted to use zend_parse_parameters, except for the u.?sort functions. Changed return values for failure from implicit NULL to explicit FALSE in asort(), krsort(), and ksort(). Changed pval to zval in the u.?sort functions. Added test to help ensure that fixes to code do not change function behavior. Tests are quite large (~237k) but compress down to ~16k. Please let me know if this is a problem!
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* - Renaming key_exists to array_key_existsDerick Rethans2001-11-111-5/+5
| | | | | | | | @- Renamed key_exists tp array_key_exists. (Derick) #- Not sure if this belongs in NEWS, but it was already in a released # version. And yes, I know I'm breaking BC here, but as it was not documented # yet, that doesn't matter.
* @- Added array_chunk() function that splits an array into chunks of specifiedAndrei Zmievski2001-10-271-0/+71
| | | | | @ size. (Andrei)
* As suggested on php-dev, array_fill() is probably a better name for thisRasmus Lerdorf2001-10-231-2/+2
| | | | | function.
* Use references instead of making a copy each time in array_init(). AboutRasmus Lerdorf2001-10-221-9/+14
| | | | | | | twice as fast for a high number of elements. 2.80 seconds for the copy of 1,000,000 elements and 1.39s for the reference version. Need to chunk it every 62k or so because refcount is a short.
* Oops, leftover crudRasmus Lerdorf2001-10-211-2/+0
|
* Motivated by bug #13607 I wrote up a simple array_init() function thatRasmus Lerdorf2001-10-211-1/+50
| | | | | | | lets you quickly create an array and initialize each element to a certain value. @ Add array_init() function (Rasmus)
* Fix naming inside php_search_array, comp_func is not a compare function.Jeroen van Wolffelaar2001-10-071-3/+3
|
* Fix array_search and in_array. Now binary safe, and faster (returns whenJeroen van Wolffelaar2001-10-051-3/+4
| | | | | | | found, and doesn't duplicate the key each time, but only when necessary) Patch also by Edin Kadribasic
* Fix bug 13567 and don't depend on a boolean int-value to be either 1 or 0Jeroen van Wolffelaar2001-10-051-6/+2
|
* Added array_change_key_case() function that returns array withEdin Kadribasic2001-10-051-0/+60
| | | | | | | with all string keys lowercased or uppercased @- Added array_change_key_case() function that returns array with @ with all string keys lowercased or uppercased (EdinK)
* Merge in qsort changesSterling Hughes2001-09-171-51/+46
|
* Make rand thread safe when ZTS is defined.Sterling Hughes2001-09-161-3/+4
|
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* remove ARG_COUNT(ht)Sterling Hughes2001-09-091-1/+1
| | | | | | # Is there any reason that the set_compare_func call is passed SORT_STRING # instead of SORT_REGULAR??
* revert bad commit.foobar2001-09-051-12/+14
|
* fix zts+win32 buildDaniel Beulshausen2001-09-041-1/+1
|