summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
Commit message (Collapse)AuthorAgeFilesLines
...
* MFB: Revert patch for bug #27782.Ilia Alshanetsky2004-04-011-8/+0
|
* Fixed bug #27782 (Wrong behaviour of next(), prev() and each()).Ilia Alshanetsky2004-03-301-0/+8
|
* this should not belong to HEADAndrey Hristov2004-01-281-14/+0
|
* Added third parameter (optional) to array_keys for strictness. It behavesAndrey Hristov2004-01-241-4/+28
| | | | | | like the "strict" parameter of in_array(). #Closing feature request #24258
* HEAD is now bundled only with ZE2Andrey Hristov2004-01-171-15/+0
|
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* New array functions for doing intersection of arrays that are complementaryAndrey Hristov2003-10-091-27/+231
| | | | | | | to array_*diff* family of functions. Namely array_uintersect(), array_uintersect_assoc(), array_intersect_uassoc() and array_uintersect_uassoc(). Test case is also included. #docs and news entry later.
* Fixed clobbering of the source array, when merging complexIlia Alshanetsky2003-10-051-0/+2
| | | | | multi-dimensional arrays. Bug reported by Lukas Smith.
* Fixed bug #25708 (extract($GLOBALS, EXTR_REFS) mangles $GLOBALS)Moriyoshi Koizumi2003-10-021-11/+8
|
* smash a segmentation faultAndrey Hristov2003-09-301-1/+1
|
* Memory leak fixed (no need of MFH since this is code specific to PHP5)Andrey Hristov2003-09-301-0/+1
|
* signed/unsigned compiler warning fixesHartmut Holzgraefe2003-09-261-1/+1
|
* Fixed typo.Ilia Alshanetsky2003-09-261-1/+1
|
* 4 new functions :Andrey Hristov2003-09-231-21/+203
| | | | | | | | | | | | | | | | array_udiff() array_udiff_assoc() array_diff_uassoc() array_udiff_uassoc() They work like array_diff() or array_diff_assoc() but callback function(s) can be used to perform the comparisons. For example array_udiff_uassoc() expects 2 callbacks are last 2 parameters one is used to compare the values of the entries in the arrays the second to compare the keys. Class methods are also valid callbacks. Even when the data that should be used in the comparison is private or protected then a static method of a class should be used (this behaviour can be seen in the regression test - 007.phpt).
* improve the fix for #25494. If more then one bad parameter is passedAndrey Hristov2003-09-221-4/+7
| | | | | an warning for all will be emitted.
* Fixed bug #25494 (array_merge allowing "false" as argument (silent whenJay Smith2003-09-111-1/+9
| | | | | | | non-array is passed)) # 4.3 throws E_NOTICEs, 5 errors out on non-array args as per Ilia's # suggestion.
* revert that, it did not fix anythingfoobar2003-08-131-1/+0
|
* Fix external builds (configure run outside srcdir)foobar2003-08-131-0/+1
|
* emalloc -> safe_emallocIlia Alshanetsky2003-08-111-19/+19
|
* Fixed bug #24897 (inconsistent behavior of shuffle() & array_multisort())Ilia Alshanetsky2003-08-091-2/+2
|
* Do not assume array contains numeric values.Ilia Alshanetsky2003-08-091-1/+1
|
* Fixed bug #24980 (array_reduce() uses first element as default runningIlia Alshanetsky2003-08-081-1/+3
| | | | | | | total). Fixed memory leak that can be replicated using the function example on http://www.php.net/array_reduce
* Replace fast_call_user_function() with zend_call_function()Zeev Suraski2003-08-051-14/+73
|
* Fix bug #24652 - Sterling, do you begin to think that maybe it wasn't suchZeev Suraski2003-08-041-1/+1
| | | | | a good idea?
* Removed unused variable.Ilia Alshanetsky2003-07-251-1/+0
|
* - Use the new infrastructure of zend_symtable_*() (fixes bug #24565)Zeev Suraski2003-07-221-5/+1
| | | | | - Fix bogus use of get_current_key()
* Fixed bug #24198 (Invalid recursion detection in array_merge_recurcive())Ilia Alshanetsky2003-06-161-1/+1
|
* silly bugAndrey Hristov2003-06-121-2/+2
|
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* fix array_key_exists() from HANDLE_NUMERIC() changesSterling Hughes2003-06-051-2/+6
| | | | | | # need to go through this file and find any stuff that relies on this # change
* initialize these to NULLSterling Hughes2003-05-201-1/+1
|
* convert array functions to use fast_call_user_function(), gives a niceSterling Hughes2003-05-201-6/+13
| | | | | performance win.
* Fixed bug #22463 and bug #23581Moriyoshi Koizumi2003-05-111-35/+49
|
* Bug Fix (22433). When the bottom of a range() is chr(0) or the top is ↵Sara Golemon2003-05-021-5/+12
| | | | chr(255), the for loop carries over and never exits.
* Fixed implicit cast issue with is*() and to*() functionsMoriyoshi Koizumi2003-04-161-2/+2
|
* Kludgy fix for floating point drift causing problems like range(1.0,1.5,0.1) ↵Sara Golemon2003-04-031-2/+4
| | | | == array(1.0,1.1,1.2,1.3,1.4);
* MFBRasmus Lerdorf2003-04-011-0/+4
|
* CSIlia Alshanetsky2003-03-271-178/+172
|
* 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().