summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
Commit message (Collapse)AuthorAgeFilesLines
* Tidy upThomas Punt2016-05-161-2/+2
|
* Remove unnecessary boundary checksThomas Punt2016-05-161-2/+2
|
* Resolve bug #72017Thomas Punt2016-05-161-6/+6
|
* Fixed bug #72116 (7.0.6 array_fill optimization breaks implementation)Bob Weinand2016-04-281-0/+1
|
* Use symtable lookup for arrays in array_columnNikita Popov2016-04-161-1/+1
|
* Respect property visibility in array_columnNikita Popov2016-04-161-6/+5
|
* Fixed bug #72031Nikita Popov2016-04-161-1/+7
|
* Optimized array_fill(). This is a perfect function for fast creation of ↵Dmitry Stogov2016-04-071-18/+56
| | | | packed arrays.
* Fix bug #71334Nikita Popov2016-03-301-20/+13
| | | | | | | | | | | | | Always duplicate the array before doing a sort with user-defined comparison function, to avoid access to the intermediate inconsistent state. I've also dropped the "array modification" warning, as protection against modifications is no longer relevant if we're always working on a copy anyway. This also required some changes to how SplArray forwards calls to sorting functions.
* Fixed #71837 (Wrong arrays behaviour)Xinchen Hui2016-03-171-0/+6
|
* Introduce zend_symtable_exists_ind() for API consistencyDmitry Stogov2016-03-021-2/+2
|
* Use hash_exists_ind in symbol tableXinchen Hui2016-03-021-1/+1
|
* Maybe we should introduce a symtable_exists_indXinchen Hui2016-03-011-2/+1
|
* Fixed bug #71695 (Global variables are reserved before execution).Xinchen Hui2016-03-011-1/+2
| | | | | | | Instead of slow down hash_merge, we may also check the array(whether it contains INDIRECT) outside of the loop, however, consisdering hash_merge is not widly used, I prefer fix this in the current way to keep the codes simple
* Fixed bug #71660 (array_column behaves incorrectly after foreach by reference)Xinchen Hui2016-02-251-0/+4
|
* Fixed bug #71603 (compact() maintains references in php7)Xinchen Hui2016-02-161-0/+1
|
* Fixed typo (I think it should be a typo)Xinchen Hui2016-02-151-1/+1
|
* Fix extract() overwriting its own argumentNikita Popov2016-02-131-4/+10
| | | | Already covered by bug46873.phpt under valgrind.
* use correct pointer in the mathAntony Dovgal2016-02-011-1/+1
|
* re-apply patch for github PR #1695Thomas Punt2016-01-121-32/+54
|
* Revert "patch for github PR #1695"Anatol Belski2016-01-111-36/+14
| | | | | | This reverts commit 58dd956b63e4fd2c9cf8210239cf5e56e3858ff5. crashes on travis
* patch for github PR #1695Thomas Punt2016-01-111-14/+36
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | Fixed bug #71220 (Null pointer deref (segfault) in compact via ob_start)Xinchen Hui2015-12-251-0/+4
| |
* | Improved fix for bug (count on symbol table)Xinchen Hui2015-11-231-38/+3
| |
* | Fixed bug (count on symbol tables)Xinchen Hui2015-11-211-2/+37
| |
* | Fixed bug #70910 (extract() breaks variable references)Xinchen Hui2015-11-131-2/+11
| |
* | This couldn't be false as it has been checked beforeReeze Xia2015-10-301-1/+1
| |
* | Use h parameter to avoid duplicate ht access of `array_combine()`Reeze Xia2015-10-301-8/+8
| |
* | Fixed bug #70808 (array_merge_recursive corrupts memory of unset items)Xinchen Hui2015-10-291-0/+4
| | | | | | | | I knew, this fix seems ugly
* | Fixed bug #70668 (array_keys() doesn't respect references when $strict is true)Dmitry Stogov2015-10-081-0/+1
| |
* | Revert "Merge branch 'array_keys_strict_refs' of ↵Dmitry Stogov2015-10-061-0/+1
| | | | | | | | | | | | https://github.com/tony2001/php-src" This reverts commit a6be0f3fd6cdd59ac00ecd76630c6c04fee03417.
* | Merge branch 'array_keys_strict_refs' of https://github.com/tony2001/php-srcBob Weinand2015-10-051-1/+0
| |
* | Removed or simplified incorrect SEPARATE_*() macros usage.Dmitry Stogov2015-09-291-6/+3
| |
* | Don't allocate memory for empty HashTables.Dmitry Stogov2015-09-171-0/+8
| |
* | Change array sorting implementation to avoid two level callbacks system.Dmitry Stogov2015-09-101-181/+582
| | | | | | | | Simplify zval comparion API.
* | Better array_compare improvementDmitry Stogov2015-09-091-14/+1
| |
* | Improved array_compareXinchen Hui2015-09-091-27/+24
| |
* | Avoid duplicationDmitry Stogov2015-08-261-2/+4
| |
* | fix array size calculation for range, related to bug #70239Anatol Belski2015-08-141-8/+18
| |
* | Fixed bug #70239 Creating a huge array doesn't result in exhausted, but segfaultAnatol Belski2015-08-141-0/+5
| |
* | Fixed bug #70250 (extract() turns array elements to references)Xinchen Hui2015-08-131-0/+1
| |
* | Deduplicate usort codeNikita Popov2015-07-181-73/+12
| |
* | Correctly handle zend_hash_sort failureNikita Popov2015-07-181-36/+32
| | | | | | | | | | This can't actually happen right now, but should it become possible we won't be leaking everything anymore.
* | Fix usort modification detectionNikita Popov2015-07-181-18/+12
| | | | | | | | This would delref the wrong array, leading to a segfault.
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-11/+11
| | | | | | | | semantick changes).
* | Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit d96eab8d79b75ac83d49d49ae4665f948d15a804 Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8 Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
* | Feature: Enhanced array_column() to also work with object elements.Tjerk Meesters2015-06-271-19/+32
| |