summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* - Fix thread safe mode.Andi Gutmans2001-09-031-2/+5
| | | | | - Please don't use Java style function braces.
* Fix array_rand and array_suffle to use php_rand correctlyJeroen van Wolffelaar2001-09-031-16/+6
|
* Fix prototypeJeroen van Wolffelaar2001-09-031-1/+1
|
* Merge RAND_REDESIGN into MAINJeroen van Wolffelaar2001-09-031-0/+5
|
* @- Made in_array() and search_array() allow the needle to be an array inAndrei Zmievski2001-08-311-1/+1
| | | | | @ itself. (Andrei)
* Kill a warningRasmus Lerdorf2001-08-281-1/+2
|
* @- Fixed a crash bug in array_map() if the input arrays had string orAndrei Zmievski2001-08-241-3/+30
| | | | | | @ non-sequential keys. Also modified it so that if a single array is passed, @ its keys are preserved in the resulting array. (Andrei)
* API updateZeev Suraski2001-08-211-9/+10
|
* WhitespaceZeev Suraski2001-08-111-13/+13
|
* Fix a couple of leaks.Andrei Zmievski2001-08-071-2/+9
|
* more tsrm cleanupSascha Schumann2001-08-061-18/+15
|
* @- Fixed a crash bug in array_map() when NULL callback was passed in. (Andrei)Andrei Zmievski2001-08-041-6/+7
|
* - Fix array_sum to switch to float on overflow. Fixes bug#12505Jeroen van Wolffelaar2001-08-031-5/+9
|
* Zend compatibility patchZeev Suraski2001-07-301-33/+33
|
* More TSRMLS_FETCH annihilation (Zend compatibility patch)Zeev Suraski2001-07-301-10/+10
|
* Redesigned thread safety mechanism - nua nuaZeev Suraski2001-07-281-13/+6
|
* - Get rid of ELS_*(), and use TSRMLS_*() instead.Zeev Suraski2001-07-271-4/+4
| | | | | | | - Move to the new ts_allocate_id() API This patch is *bound* to break some files, as I must have had typos somewhere. If you use any uncommon extension, please try to build it...
* Make range() function smarterRasmus Lerdorf2001-07-091-10/+33
| | | | | | @ - Improve range() function to support range('a','z') and range(9,0) @ types of ranges. (Rasmus)
* - Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))Andi Gutmans2001-06-191-1/+1
|
* Fix folding and clean up some extensionsRasmus Lerdorf2001-06-061-1/+2
|