Felipe Pena
da376383e8
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Pierrick Charron
e53ca46fc0
Fixed bug #54971 (Wrong result when using iterator_to_array with use_keys on true)
2011-06-28 11:09:06 +00:00
Arnaud Le Blanc
b83e243c23
Added CallbackFilterIterator and RecursiveCallbackFilterIterator classes
...
[DOC] This is a concrete FilterIterator which takes a callback as
constructor parameter, and uses this callback for filtering. This allows
to use FilterIterator without extending it.
CallbackFilterIterator Example:
$it = new ArrayIterator(range(1,100));
$it = new CallbackFilterIterator($it, function($value) {
return $value % 2;
});
foreach($it as $value) // ...
RecursiveCallbackFilterIterator Example:
$it = new RecursiveDirectoryIterator("/");
$it = new RecursiveCallbackFilterIterator($it, function($file, $k, $it) {
return $it->hasChildren() || $file->getSize() > 1024;
});
foreach(new RecursiveIteratorIterator($it) as $file) // ...
The callback takes the current value, the current key and the inner
iterator as parameters.
2011-03-27 20:13:27 +00:00
Gustavo André dos Santos Lopes
c2fe893985
- Fixed bug #54384 : Several SPL classes crash when parent constructor is
...
not called.
#Merge to 5.3 pending (slight BC break on AppendIterator, as it's no
#longer possible to defer the call to the parent constructor until
#after the constructor is performed).
#Bugs fixed in an atypical way for SPL. The parent constructor call
#check is performed at construction time by using a wrapper constructor
#instead of a check on the beginning of each instance method.
#Perhaps this should be uniformized in trunk; this method was mainly
#applied only to the ones crashing, except a few iterators (at least
#AppendIterator and RecursiveIteratorIterator).
2011-03-27 04:21:06 +00:00
Felipe Pena
11c4a5b96a
- Fixed bug #54281 (Crash in non-initialized RecursiveIteratorIterator)
2011-03-22 22:41:16 +00:00
Felipe Pena
c4850dbf88
- Fixed bug #54040 (Logical && where & probably needed in spl_iterators)
2011-02-20 16:09:50 +00:00
Adam Harvey
3571c955b5
Implement request #53659 (Implementing RegexIterator::getRegex() method). Patch
...
by Joshua Thijssen.
2011-01-06 02:32:02 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Felipe Pena
8192f0f771
- Added missing void arg checks
2010-11-14 18:40:08 +00:00
Felipe Pena
590ad22361
- Fix the fix (wrong behavior)
2010-11-08 20:26:14 +00:00
Felipe Pena
d31e4e7f8e
- Fixed bug #50579 (RegexIterator::REPLACE doesn't work)
2010-11-06 00:09:50 +00:00
Felipe Pena
c0c5c1ad4c
- Fixed ZTS build
2010-07-07 22:46:54 +00:00
Etienne Kneuss
bb15b92d2d
Fixed #51697 (Unsafe operations in free_storage of SPL iterators,
...
causes crashes during shutdown)
2010-07-07 21:55:17 +00:00
Johannes Schlüter
21d5041c03
Fix bug #52238 : Crash when an Exception occured in iterator_to_array
2010-07-02 19:17:45 +00:00
Dmitry Stogov
c5237d82bf
Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties
2010-05-24 14:11:39 +00:00
Etienne Kneuss
6f5f6d2bca
Fix #49723 (Skip seek when unnecessary)
2010-04-27 04:57:48 +00:00
Dmitry Stogov
94dd83722b
Changed the structure of op_array.opcodes. The constant values are moved from opcode operands into a separate literal table
2010-04-20 10:57:45 +00:00
Peter Cowburn
fbbe3e3686
Corrected typo in LimitIterator offset exception. Fixes #51119
2010-02-22 23:55:30 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Felipe Pena
a94558c855
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
2009-12-08 01:57:37 +00:00
Felipe Pena
8f11dc62d5
- Fixed bug #50090 (Typo in IteratorIterator constructor)
2009-11-07 21:27:15 +00:00
Felipe Pena
8ce58b2490
- Fixed bug #50018 (Typo in spl_limit_it_seek())
2009-10-27 21:57:26 +00:00
Johannes Schlüter
0a8fc25b7d
Fix #49972 (AppendIterator undefined function crash)
2009-10-23 16:47:35 +00:00
Felipe Pena
fc4e43ec3c
MFH:
...
- Added missing methods' arginfo (for void params)
- Fixed arginfos:
- MultipleIterator::__construct
- MultipleIterator::setFlags (Thanks Philip!)
- SplFixedArray::__construct
2009-07-04 20:31:27 +00:00
Scott MacVicar
01a6919ff0
Fix bug #48206 again
2009-05-09 19:45:26 +00:00
Scott MacVicar
e89c1cf7d9
MFH Fix bug #48206 - Iterating over an invalid data structure leads to a segfault
2009-05-09 19:35:09 +00:00
Felipe Pena
d29e47652f
- MFH: Added missing "return;"
2009-01-20 00:43:25 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Etienne Kneuss
3919b16f04
MFH: Fix #46241 (stacked error_handlers, error_handling in general)
2008-11-19 02:00:53 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:35:40 +00:00
Arnaud Le Blanc
261f0c32a5
initialize optional vars
2008-10-21 22:08:20 +00:00
Felipe Pena
084124fb37
- MFH: Fixed bug #46088 (RegexIterator::accept - segfault)
2008-09-22 13:09:09 +00:00
Arnaud Le Blanc
506e49c6e1
MFH: Fixed bug #46031 (Segfault in AppendIterator::next)
2008-09-09 19:44:15 +00:00
Etienne Kneuss
c77ca4c34a
MFH: Fix error_handling usage in various extensions
2008-08-08 22:07:07 +00:00
Felipe Pena
e304515ddb
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
2008-08-02 04:46:07 +00:00
Dmitry Stogov
3c62c4bf7e
Removed warning
2008-07-29 11:50:05 +00:00
Etienne Kneuss
5495813bb3
MFH: Complete the ZTS build fix
2008-07-19 19:45:55 +00:00
Derick Rethans
5501431626
- MFH: Fixed ZTS build.
2008-07-19 19:24:07 +00:00
Marcus Boerger
e537b7934d
- MFH Added RecursiveTreeIterator
2008-07-19 15:49:21 +00:00
Etienne Kneuss
b57e7b44da
Fix bug #41828 (Fix crash on wrong instantiation)
2008-03-12 13:34:47 +00:00
Marcus Boerger
522166bad1
- MFH Fix bug in example code found by Surf Chen
2008-01-10 10:11:33 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Jani Taskinen
b489251177
- MFH from HEAD:
...
. Folding tags
. Parameter parsing
. SPL debug info
. array function improvements (not all yet)
. Improvements to function calling with call_user_* functions
. Improvements to debugging info in var_dump/print_r
# I propably forgot already something but this all was pretty close tied
# to each other so it wasn't possible to do it in parts.
2007-11-02 19:40:39 +00:00
Marcus Boerger
80893e5727
- Fix #42703
2007-10-18 04:41:39 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Marcus Boerger
93583f9680
- MFH Add invert option to RegexIterator
2007-05-11 00:15:25 +00:00
Marcus Boerger
fa29c1a2f5
- Fix copy'n'paste issues
2007-03-04 14:01:06 +00:00