summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
Commit message (Collapse)AuthorAgeFilesLines
...
* - 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
|
* vim-6 does folding - clean up a bunch of missing folding tags plusRasmus Lerdorf2001-06-051-0/+1
| | | | | some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
* Add missing end-folding delimiterJohn Donagher2001-05-231-0/+1
|
* Always free the callback_name when using zend_is_callable().Andrei Zmievski2001-05-101-0/+3
|
* @ - Added key_exists() to check if a given key or index exists in anDavid Croft2001-04-301-0/+38
| | | | | | @ array or object (David Croft) Added key_exists() to check if a given key or index exists in an array or object
* Use correct string length.Andrei Zmievski2001-04-021-1/+1
|
* @- Added array_map() function that applies a callback to the elementsAndrei Zmievski2001-03-191-1/+112
| | | | | | @ of given arrays and returns the result. It can also be used with a @ null callback to transpose arrays. (Andrei)
* @- Added array_filter(), which allows filtering of array elements viaAndrei Zmievski2001-03-161-0/+76
| | | | | @ the specified callback. (Andrei)
* All user callbacks should be to EG(function_table).Andrei Zmievski2001-03-161-5/+4
|
* Fixing build on Win32 by adding missing BLS_FETCH();Frank M. Kromann2001-03-161-0/+1
|
* @- Fixed all relevant array functions to avoid moving the internal arrayAndrei Zmievski2001-03-161-65/+76
| | | | | @ pointer during operations. (Andrei)
* Prevent memory leakStanislav Malyshev2001-03-121-1/+1
|
* Use hash position with array_flipStanislav Malyshev2001-03-121-6/+8
|
* This will have to do until the docs come along.Andrei Zmievski2001-03-121-1/+1
|
* @- Added array_reduce(), which allows iterative reduction of an arrayAndrei Zmievski2001-03-121-0/+60
| | | | | | | | @ to a single value via a callback function. (Andrei) - Added array_reduce(), which allows iterative reduction of an array to a single value via a callback function. - Fixed usage of zend_is_callable() in PCRE.
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* Adding php_rand() and php_srand(seed) as a wrapper around random, lrand48 ↵James Moore2001-02-221-12/+1
| | | | and rand.
* Fix memory leak.Andrei Zmievski2001-02-211-0/+2
|
* Changed default behavior of array_search to match in_arrayJason Greene2001-02-201-12/+3
| | | | | (strict was default on, and is now default off)
* Rename to array_search().Andrei Zmievski2001-02-201-5/+4
|
* Moved the core of in_array into the function php_search_array, which is ↵Jason Greene2001-02-201-11/+59
| | | | | | | | | | called by in_array and search_array (new) @ Added search_array which works similar to in_array but returns @ the key instead of a boolean. (jason@php.net)
* For those lucky systems with both random() and *rand48(), the random()Jim Jagielski2001-02-061-6/+6
| | | | | family is the prefered choice. So if both exist, we now choose that.
* @- Fixed extract() to properly prefix numeric keys when EXTR_PREFIX_ALL isAndrei Zmievski2001-01-221-61/+86
| | | | | | | @ used. (Andrei) @- Added EXTR_PREFIX_INVALID flag to extract() to automatically prefix @ string keys that do not constitute valid variable names. (Andrei)
* @- Changed extract() to check that prefixed name is a valid one. (Andrei)Andrei Zmievski2001-01-081-36/+35
| | | | | | | | Changed extract() to check that prefixed name is a valid one. Optimized extract() a bit too. # It'd be nice if someone made regression tests for extract().
* @- Changed extract() to return the number of variables extracted. (Andrei)Andrei Zmievski2001-01-081-2/+6
|
* Hopefully solves some bad behavior in array_unique(), array_intersect()Stig Venaas2000-12-281-69/+21
| | | | | | | and array_diff(). Now using SORT_STRING instead of SORT_REGULAR @- Fixed misbehavior of array_unique(), array_intersect() and array_diff(); @ could in certain cases give wrong result or segfault (Stig Venaas)
* (PHP preg_replace) Fix to allow proper escaping of captured subpatternAndrei Zmievski2000-12-221-0/+6
| | | | | | references in the replacement string. (PHP array_sum) Check that argument is an array.
* Heads up people!Zeev Suraski2000-12-221-19/+12
| | | | | | Updated the get_current_key() API - the relevant authors, please take a look at the updated code and make sure it's ok...
* Make php_array_merge() an API function.Andrei Zmievski2000-12-111-7/+7
|
* The result of conv_z_macros and some manual conversion ofSascha Schumann2000-11-271-193/+190
| | | | | "return_value.*=.*IS_STRING" constructs to RETVAL_STRINGL.
* Fixed memory leak in array_diff and array_intersect, was introduced withStig Venaas2000-11-031-2/+0
| | | | | last change.