Sara Golemon
734e165d4e
array_column() - Use entire subject array when NULL passed for second param.
...
This starts to look like array_values(), except that you can reindex the arrays
using the third parameter.
2013-04-22 16:19:21 -07:00
Sara Golemon
1a03bd5dee
Allow array_column() to take -1 as a valid value in third param
...
Also do some cleanup and simplification to make this code more
readable in the long term.
2013-04-22 15:54:21 -07:00
Sara Golemon
f63db963c4
Harden array_column_basic.phpt against resource renumbering.
...
We don't care what resource number it is, so long as there's a
stream resource returned.
2013-04-22 13:36:40 -07:00
Sara Golemon
7b34324f84
Fix handling of double keys in array_column
...
Also fix resource test to not localize __FILE__ to cwd.
2013-04-21 22:35:04 -07:00
Xinchen Hui
d8a5f41a60
Fixed bug parameter is casted to string of array_column
2013-04-01 19:11:45 +08:00
David Soria Parra
0173c4bab0
Merge branch 'pull-request/257' into PHP-5.5
...
* pull-request/257:
array_column: Fix compile-time warnings
array_column: Removed array_pluck() alias
array_column: Set array_pluck as an alias for array_column
array_column: Implement ability to specify an index column
Cleaning up a memory leak.
array_column: Adding test for IS_OBJECT and converting object to string
array_column: Using add_next_index_zval() at nikic's recommendation.
array_column: Improved tests
array_column: Cleaning up, as recommended in pull request #56 comments
Fixing typo in test for array_column()
Simplify the code and use zend_hash_next_index_insert()
Adding test for columns not present in all rows for array_column().
Adding tests for the negative results of array_column()
Implement new array function array_column()
2013-03-20 13:02:33 +01:00
Carson McDonald
0c11cab919
Typo fix: recieved to received
2013-03-07 23:05:05 +01:00
Ben Ramsey
3439a098a0
array_column: Removed array_pluck() alias
2013-01-14 10:04:14 -06:00
Ben Ramsey
a1876b6846
array_column: Set array_pluck as an alias for array_column
2013-01-11 17:09:34 -06:00
Ben Ramsey
5bc2854b37
array_column: Implement ability to specify an index column
2013-01-11 16:58:31 -06:00
Ben Ramsey
20ab30339d
array_column: Adding test for IS_OBJECT and converting object to string
2013-01-11 14:16:19 -06:00
Ben Ramsey
5f6b20a44d
array_column: Improved tests
2013-01-11 14:16:19 -06:00
Ben Ramsey
10da6f00b8
Fixing typo in test for array_column()
2013-01-11 14:16:19 -06:00
Ben Ramsey
dc4dfe8ae0
Adding test for columns not present in all rows for array_column().
2013-01-11 14:16:19 -06:00
Ben Ramsey
a811e5b6f7
Adding tests for the negative results of array_column()
2013-01-11 14:16:19 -06:00
Ben Ramsey
9035a1ed24
Implement new array function array_column()
...
array_column() returns the values of the specified column from a
multi-dimensional array.
2013-01-11 14:16:19 -06:00
Xinchen Hui
610c7fbe7b
Remove executable permission on phpt
2012-10-10 10:27:49 +08:00
Xinchen Hui
4b152e5470
Merge branch 'PHP-5.4'
2012-10-10 10:32:38 +08:00
Xinchen Hui
e081c55fb5
Merge branch 'PHP-5.3' into PHP-5.4
2012-10-10 10:31:31 +08:00
Nuno Lopes
af2d6a63bf
remove remaining traces of unicode.* ini settings
2012-05-27 19:57:34 -04:00
Xinchen Hui
376635cde8
Merge branch 'PHP-5.3' into PHP-5.4
2012-05-06 20:32:15 +08:00
Xinchen Hui
99076bc24f
Change the test folder
2012-05-06 20:31:40 +08:00
Nikita Popov
37d7df72a6
Fix bug #52719 : array_walk_recursive crashes if third param of the function is by reference
2012-03-02 18:05:38 +00:00
Nikita Popov
e7810c1f1e
Fix bug #52719 : array_walk_recursive crashes if third param of the function is by reference
2012-03-02 18:05:38 +00:00
Xinchen Hui
fda8d2fe68
MFH: Fixed bug #61058 (array_fill leaks if start index is PHP_INT_MAX)
2012-03-02 03:40:40 +00:00
Rasmus Lerdorf
fdd1977ea7
Unbreak these tests - please be careful with your Windows-based editors that
...
seem to mess up ^M's here.
2012-02-12 08:01:25 +00:00
Xinchen Hui
33125e2312
Improved fix for #61058 , and add test script
2012-02-12 05:32:24 +00:00
Adam Harvey
98f5e51a7e
Fix bug #60933 on PHP_5_4 (approved by Stas).
2012-02-03 04:17:11 +00:00
Adam Harvey
479c22523c
Fix bug #60933 (Testing asort with SORT_LOCALE_STRING fails on Mac OS X 10.6) on PHP_5_3 and trunk.
2012-02-03 01:21:24 +00:00
Pierre Joye
8e54a63133
- skip on win
2011-12-13 23:04:01 +00:00
Pierre Joye
3b8e237128
- skip on win
2011-12-13 23:04:01 +00:00
Pierre Joye
52e77c9bc8
- skip on win
2011-12-12 14:03:24 +00:00
Pierre Joye
b54e8fa231
- skip on win
2011-12-12 14:03:24 +00:00
Pierre Joye
7eee6fa759
- skip on win
2011-12-12 14:02:06 +00:00
Pierre Joye
a275c409c6
- skip on win
2011-12-12 14:02:06 +00:00
Pierre Joye
aa37291e20
- skip on win
2011-12-12 13:56:42 +00:00
Pierre Joye
02e898c9e0
- skip on win
2011-12-12 13:56:42 +00:00
Pierre Joye
ec9b8149e1
- skip on win
2011-12-12 13:53:38 +00:00
Pierre Joye
b02c751074
- skip on win
2011-12-12 13:53:38 +00:00
Pierre Joye
c0ba404054
- skip on win
2011-12-12 13:49:21 +00:00
Pierre Joye
df3c9a79fe
- skip on win
2011-12-12 13:49:21 +00:00
Pierre Joye
1a7f05705f
- skip on win
2011-12-12 13:34:21 +00:00
Pierre Joye
582363d9c8
- skip on win
2011-12-12 13:34:21 +00:00
Pierre Joye
a4ecf57a30
- skip on win
2011-12-12 13:31:43 +00:00
Pierre Joye
d15e57d5db
- skip on win
2011-12-12 13:31:43 +00:00
Felipe Pena
60f338ef2c
- Fixed tests
2011-12-01 14:15:22 +00:00
Stanislav Malyshev
d81ea16ef1
Changed silent conversion of array to string to produce a notice. (Patrick)
2011-10-21 06:08:47 +00:00
Arpad Ray
b52256c5be
add support for SORT_NATURAL and SORT_FLAG_CASE in array sort functions
2011-08-29 20:23:34 +00:00
Adam Harvey
840308cfd0
Implement FR #54459 (Range function accuracy) by changing the way range()
...
calculates values when used with floating point bounds/step.
2011-04-06 10:23:06 +00:00
Adam Harvey
187eb235fe
Implement FR #54459 (Range function accuracy) by changing the way range()
...
calculates values when used with floating point bounds/step.
2011-04-06 10:23:06 +00:00