Etienne Kneuss
0909cafc7d
Fix crash
15 years ago
Etienne Kneuss
fdce66dfd2
Fix #48860 Implement Serialization for DLL
15 years ago
Pierrick Charron
a814063804
Fixed bug #54971 (Wrong result when using iterator_to_array with use_keys on true)
15 years ago
Knut Urdalen
db34dc0a8b
fixed temp directory names in spl tests
15 years ago
Knut Urdalen
fe724baa4d
fixed/refactored some spl tests related to owner/group retrieval
15 years ago
Felipe Pena
191df85605
- Drop C++ style comments
15 years ago
Felipe Pena
32b5f8a1a3
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
15 years ago
Felipe Pena
f57cbfcaa1
- Possible fix for bug #54609 (Certain implementation(s) of SplFixedArray cause hard crash)
15 years ago
Felipe Pena
767f924665
- Fixed bug #54970 (SplFixedArray::setSize() isn't resizing)
15 years ago
Dmitry Stogov
77ed819430
Fixed bug #54323 (Accessing unset()'ed ArrayObject's property causes crash)
15 years ago
Pierrick Charron
1368364469
Fix common typos in the source code (Reported in Bug #54065 )
# External libraries were excluded
# Thanks eitan at eitanadler dot com for the first patch :)
15 years ago
Gustavo André dos Santos Lopes
f7b7b6aa9e
- Improved upon r309729.
- Extented strategy to remaining the classes on spl_directory.c, even those that don't crash.
- UPGRADING.
- Better bug54384.phpt, with all the classes covered.
15 years ago
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.
15 years ago
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).
15 years ago
Felipe Pena
39e0aa4dc6
- Fixed bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
15 years ago
Felipe Pena
11c4a5b96a
- Fixed bug #54281 (Crash in non-initialized RecursiveIteratorIterator)
15 years ago
Gustavo André dos Santos Lopes
8deb11c0c3
- Fixed bug #54291 (Crash iterating DirectoryIterator for dir name starting
with \0).
15 years ago
Felipe Pena
67fa13a3ca
- Fixed bug #49608 (Using CachingIterator on DirectoryIterator instance segfaults)
15 years ago
Felipe Pena
18097605b7
- Fixed SplObjectStorage::offsetSet arginfo, reported in bug #54118
15 years ago
Felipe Pena
a47eb9a4d6
- Fixed memory leak in DirectoryIterator::getExtension() and SplFileInfo::getExtension()
15 years ago
Felipe Pena
c4850dbf88
- Fixed bug #54040 (Logical && where & probably needed in spl_iterators)
15 years ago
Adam Harvey
6bc25ca285
Fix bug #53914 (SPL assumes HAVE_GLOB is defined). Original patch by Chris
Jones; test updates by myself.
15 years ago
Adam Harvey
3571c955b5
Implement request #53659 (Implementing RegexIterator::getRegex() method). Patch
by Joshua Thijssen.
15 years ago
Adam Harvey
e7a1d5004e
Remove empty files left when r306542 was reverted in r306552.
15 years ago
Etienne Kneuss
78728e33fa
Implement SplObjectStorage::removeAllExcept (Patch by Matthey Turland)
15 years ago
Felipe Pena
0203cc3d44
- Year++
15 years ago
Eyal Teutsch
83ef8850a0
SplFileObject_fgetcsv files: SplFileObject__fgetcsv.csv used instead of SplFileObject::fgetcsv.csv, as to make this naming convetion windows legitimate
15 years ago
Peter Cowburn
064a254483
Implemented FR #48767 (SplFileInfo::getExtension())
15 years ago
Gustavo André dos Santos Lopes
9b698dbcea
- Revert of revision 306542, turns out the semantics of compare() are
different in SplMinHeap and SplMaxHeap.
15 years ago
Gustavo André dos Santos Lopes
4a11d76a75
- Fixed bug #53588 (SplMinHeap bad sorting with custom compare
function).
15 years ago
Eyal Teutsch
8e2475a787
moved the second unlink() to the CLEAN section in the SplFileObject_fwrite_variation* tests
15 years ago
Pierre Joye
a7ffa09e18
- add PHP_INSTALL_HEADERS to all parts (core&exts) exposing headers, generate the install-headers cmd
15 years ago
Felipe Pena
13c99651fc
- Fixed bug #53515 (property_exists incorrect on ArrayObject null and 0 values)
15 years ago
Dmitry Stogov
c35fc78890
Fixed bug #53511 (Exceptions are lost in case an exception is thrown in catch operator)
15 years ago
Eyal Teutsch
f69051602a
test bug42364 included a superfluous ?>
15 years ago
Felipe Pena
9608da9443
- Fixed bug #53362 (Segmentation fault when extending SplFixedArray)
15 years ago
Jani Taskinen
6d7fa61843
- Fix test
15 years ago
Felipe Pena
8192f0f771
- Added missing void arg checks
15 years ago
Adam Harvey
6cb7ea4089
Implemented FR #53264 (Add fputcsv method to SplFileObject).
15 years ago
Adam Harvey
150a741fee
Fix bug #53279 (SplFileObject doesn't initialise default CSV escape character).
15 years ago
Felipe Pena
590ad22361
- Fix the fix (wrong behavior)
15 years ago
Felipe Pena
d31e4e7f8e
- Fixed bug #50579 (RegexIterator::REPLACE doesn't work)
15 years ago
Gustavo André dos Santos Lopes
21d704063d
- Small optimization of the fix of bug #53071 . It's not necessary to destroy
the debug info as it's not holding references anymore (the fix removed
the refcount increments).
15 years ago
Gustavo André dos Santos Lopes
7fcce35f9b
- Fixed bug #53071 (SPLObjectStorage defeats gc_collect_cycles).
15 years ago
Felipe Pena
f0d2559d26
- Fixed bug #53144 (SplObjectStorage::removeAll())
15 years ago
Pierre Joye
b4368a76cd
- Implement bug #51804 , splFileInfo::getLinkTarget() on Windows
15 years ago
Felipe Pena
f3028b9226
- Improved fix for bug #52573
15 years ago
Felipe Pena
c10bb27254
- Fixed bug #52573 (SplFileObject::fscanf Segmentation fault)
16 years ago
Felipe Pena
84bc1c8593
- Fixed bug #50481 (Storing many SPLFixedArray in an array crashes)
16 years ago
Felipe Pena
c0c5c1ad4c
- Fixed ZTS build
16 years ago