Hannes Magnusson
3dabada846
Use the default stream context for FilesystemIterator, GlobIterator and (Recursive)DirectoryIterator
2011-09-30 14:12:26 +00:00
Hannes Magnusson
317f933cd6
Use the default stream context for FilesystemIterator, GlobIterator and (Recursive)DirectoryIterator
2011-09-30 14:12:26 +00:00
Hannes Magnusson
f19a112185
Test for non-string replacement, bug#54304
2011-09-12 17:20:44 +00:00
Hannes Magnusson
76d9a3fa3d
Test for non-string replacement, bug#54304
2011-09-12 17:20:44 +00:00
Hannes Magnusson
4653534643
Test for non-string replacement, bug#54304
2011-09-12 17:20:44 +00:00
Hannes Magnusson
4ff1539384
Allow replacement to be any scalar value
2011-09-12 13:21:57 +00:00
Hannes Magnusson
75c4d6f888
Allow replacement to be any scalar value
2011-09-12 13:21:57 +00:00
Hannes Magnusson
2c5574b3d8
Allow replacement to be any scalar value
2011-09-12 13:21:57 +00:00
Pierre Joye
c35d34a10d
- nuke unused var
2011-09-09 07:57:29 +00:00
Pierre Joye
7a3d89a9aa
- nuke unused var
2011-09-09 07:57:29 +00:00
Pierre Joye
ba07a1c72b
- improve r316420, function must return a value
2011-09-09 07:56:42 +00:00
Pierre Joye
2d9f758435
- improve r316420, function must return a value
2011-09-09 07:56:42 +00:00
Pierre Joye
6550af384f
- improve r316420 (SplFileObject cannot and should not accept directories)
2011-09-08 23:12:32 +00:00
Pierre Joye
de12ac023c
- improve r316420 (SplFileObject cannot and should not accept directories)
2011-09-08 23:12:32 +00:00
Etienne Kneuss
1e04e19a37
MFH: adapt check for __construct bypass
2011-09-08 23:10:40 +00:00
Pierre Joye
4ccef0b950
- improve r316420 (SplFileObject cannot and should not accept directories)
2011-09-08 23:07:48 +00:00
Pierre Joye
38c698c062
- improve r316420 (SplFileObject cannot and should not accept directories)
2011-09-08 23:07:48 +00:00
Pierre Joye
376ba8c92e
- force LF
2011-09-08 16:10:07 +00:00
Pierre Joye
59571f6fce
- force LF
2011-09-08 16:10:07 +00:00
Etienne Kneuss
5cc7663098
SplFileObject does not accept directories. It did not check for that and blindly opened the directory, which works on linux but fails on windows. Now SplFileObject uses a stat() call to make sure it isn't a directory, if it is, it fails with an exception. Tests have been changed accordingly.
2011-09-08 15:52:59 +00:00
Etienne Kneuss
3afb143e65
SplFileObject does not accept directories. It did not check for that and blindly opened the directory, which works on linux but fails on windows. Now SplFileObject uses a stat() call to make sure it isn't a directory, if it is, it fails with an exception. Tests have been changed accordingly.
2011-09-08 15:52:59 +00:00
Hannes Magnusson
a6c07ae0d3
Fix cleanup routines
2011-09-07 12:05:19 +00:00
Hannes Magnusson
12d67c1a45
Fix cleanup routines
2011-09-07 12:05:19 +00:00
Hannes Magnusson
04044dd07e
Fix cleanup routines
2011-09-07 12:05:19 +00:00
Xinchen Hui
16d0023daf
fix skipif description
2011-09-07 00:59:10 +00:00
Xinchen Hui
b1263c4363
fix skipif description
2011-09-07 00:59:10 +00:00
Xinchen Hui
b7788089e1
fix skipif description
2011-09-07 00:59:10 +00:00
Pierre Joye
f2b8c5395c
- use a more portable name for the filename
2011-09-06 11:24:21 +00:00
Pierre Joye
efc45f8b60
- use a more portable name for the filename
2011-09-06 11:24:21 +00:00
Pierre Joye
f438a87d90
- use something we know it exists...
2011-09-06 07:26:05 +00:00
Pierre Joye
71cda5ea0a
- use something we know it exists...
2011-09-06 07:26:05 +00:00
Pierre Joye
1d22c75eb3
- use something we know it exists...
2011-09-06 07:26:05 +00:00
Pierre Joye
c97a56e77f
- skip on win, name.. name. are not valid names
2011-09-06 07:23:20 +00:00
Pierre Joye
d29a253629
- skip on win, name.. name. are not valid names
2011-09-06 07:23:20 +00:00
Pierre Joye
80a2175c37
- skip on win, name.. name. are not valid names
2011-09-06 07:23:20 +00:00
Hannes Magnusson
eba373139c
Add skipifs for bug#54971 (patch by datibbaw@)
2011-08-30 13:46:24 +00:00
Hannes Magnusson
850d865551
Add skipifs for bug#54971 (patch by datibbaw@)
2011-08-30 13:46:24 +00:00
Hannes Magnusson
d972f636c9
Add skipifs for bug#54971 (patch by datibbaw@)
2011-08-30 13:46:24 +00:00
Etienne Kneuss
b03860a935
Fix CID 593 Mark the missing break by an explicit comment, we DO intend to fall through here
2011-08-12 22:20:35 +00:00
Etienne Kneuss
80742189b8
Fix CID 593 Mark the missing break by an explicit comment, we DO intend to fall through here
2011-08-12 22:20:35 +00:00
Etienne Kneuss
bb7a93081e
Fix CID 538/539, explicitely check for something that should never occur
2011-08-12 22:05:10 +00:00
Etienne Kneuss
5128d59331
Fix CID 538/539, explicitely check for something that should never occur
2011-08-12 22:05:10 +00:00
Etienne Kneuss
cf2db20123
Fix CID 547, make static analyzer happy
2011-08-12 21:57:54 +00:00
Etienne Kneuss
81700b8b2f
Fix CID 1211, unused intern variable
2011-08-12 21:46:40 +00:00
Etienne Kneuss
32e67db84c
Fix CID 1211, unused intern variable
2011-08-12 21:46:40 +00:00
Etienne Kneuss
482e4b9d70
Fix validator for SplFileInfo constructor
2011-08-08 12:05:34 +00:00
Xinchen Hui
a8a0a6c3f1
Sizeof mismatch
2011-08-08 08:49:55 +00:00
Xinchen Hui
802b871ea1
Sizeof mismatch
2011-08-08 08:49:55 +00:00
Xinchen Hui
dbd405a001
Wrong sizeof
2011-08-08 02:33:03 +00:00
Xinchen Hui
8bae5e220e
Wrong sizeof
2011-08-08 02:33:03 +00:00
Peter Cowburn
4d28bb722b
added (recursive)callbackfilteriterator to spl_classes() (bug #55287 )
2011-07-27 08:48:08 +00:00
Peter Cowburn
9159e3d246
added (recursive)callbackfilteriterator to spl_classes() (bug #55287 )
2011-07-27 08:48:08 +00:00
Pierre Joye
438cc3e255
- use cwd_expand now
2011-07-26 07:30:41 +00:00
Pierre Joye
5107df2d04
- use cwd_expand now
2011-07-26 07:30:41 +00:00
Felipe Pena
23e438594d
- Make usage of new PHP_FE_END macro
2011-07-25 11:42:53 +00:00
Felipe Pena
4b30846b50
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Felipe Pena
da376383e8
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Stefan Marr
dca6f950a9
Added forgotten tests cases for class_uses() from commit rev. 313640
2011-07-24 10:20:08 +00:00
Stefan Marr
f9cb269d59
Added forgotten tests cases for class_uses() from commit rev. 313640
2011-07-24 10:20:08 +00:00
Stefan Marr
1fc4bc1d56
Added missing class_uses(..) function to SPL to mirror class_implements(..).
...
# Was pointed out as missing in bug #55266 .
2011-07-23 19:08:43 +00:00
Stefan Marr
35f58b972f
Added missing class_uses(..) function to SPL to mirror class_implements(..).
...
# Was pointed out as missing in bug #55266 .
2011-07-23 19:08:43 +00:00
Pierrick Charron
824726073b
Delete empty test files (old MQ tests)
2011-07-22 12:12:05 +00:00
Pierrick Charron
fb5da94c1b
Delete empty test files (old MQ tests)
2011-07-22 12:12:05 +00:00
Pierre Joye
45420bb669
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ, missing tests changes in 5.4
2011-07-22 11:56:20 +00:00
Pierre Joye
9805e1674a
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
2011-07-22 11:25:30 +00:00
Pierre Joye
cc1c7af037
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
2011-07-22 11:25:30 +00:00
Etienne Kneuss
28c3a180b2
Fix crash
2011-07-12 21:57:14 +00:00
Etienne Kneuss
0909cafc7d
Fix crash
2011-07-12 21:57:14 +00:00
Etienne Kneuss
c13f2c3e2c
Fix #48860 Implement Serialization for DLL
2011-07-12 21:43:17 +00:00
Etienne Kneuss
fdce66dfd2
Fix #48860 Implement Serialization for DLL
2011-07-12 21:43:17 +00:00
Pierrick Charron
1b416caeb1
Fixed bug #54971 (Wrong result when using iterator_to_array with use_keys on true)
2011-06-28 11:09:06 +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
Pierrick Charron
a814063804
Fixed bug #54971 (Wrong result when using iterator_to_array with use_keys on true)
2011-06-28 11:09:06 +00:00
Knut Urdalen
778edca904
fixed temp directory names in spl tests
2011-06-25 07:45:41 +00:00
Knut Urdalen
785a7a5056
fixed temp directory names in spl tests
2011-06-25 07:45:41 +00:00
Knut Urdalen
db34dc0a8b
fixed temp directory names in spl tests
2011-06-25 07:45:41 +00:00
Knut Urdalen
f8e21c395b
fixed/refactored some spl tests related to owner/group retrieval
2011-06-25 04:50:42 +00:00
Knut Urdalen
bf61fbb33a
fixed/refactored some spl tests related to owner/group retrieval
2011-06-25 04:50:42 +00:00
Knut Urdalen
fe724baa4d
fixed/refactored some spl tests related to owner/group retrieval
2011-06-25 04:50:42 +00:00
Felipe Pena
b8d10158d1
- Drop C++ style comments
2011-06-10 23:14:15 +00:00
Felipe Pena
191df85605
- Drop C++ style comments
2011-06-10 23:14:15 +00:00
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
2011-06-06 21:28:16 +00:00
Felipe Pena
4737910b69
- 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
2011-06-06 21:28:16 +00:00
Felipe Pena
0afd4bd18b
- Possible fix for bug #54609 (Certain implementation(s) of SplFixedArray cause hard crash)
2011-06-05 01:38:12 +00:00
Felipe Pena
f57cbfcaa1
- Possible fix for bug #54609 (Certain implementation(s) of SplFixedArray cause hard crash)
2011-06-05 01:38:12 +00:00
Felipe Pena
a2124382ac
- Possible fix for bug #54609 (Certain implementation(s) of SplFixedArray cause hard crash)
2011-06-05 01:38:12 +00:00
Felipe Pena
47315dfdf6
- Fixed bug #54970 (SplFixedArray::setSize() isn't resizing)
2011-06-02 00:40:27 +00:00
Felipe Pena
767f924665
- Fixed bug #54970 (SplFixedArray::setSize() isn't resizing)
2011-06-02 00:40:27 +00:00
Felipe Pena
df4c4a9e7f
- Fixed bug #54970 (SplFixedArray::setSize() isn't resizing)
2011-06-02 00:40:27 +00:00
Dmitry Stogov
77ed819430
Fixed bug #54323 (Accessing unset()'ed ArrayObject's property causes crash)
2011-04-07 14:52:30 +00:00
Gustavo André dos Santos Lopes
cd2cdd256a
- Make SplFileInfo::_bad_state_ex final.
2011-04-05 08:38:09 +00:00
Gustavo André dos Santos Lopes
2975308e1a
- Fixed bug #54384 (Dual iterators, GlobIterator, SplFileObject and
...
SplTempFileObject crash when user-space classes don't call the paren
constructor).
2011-04-04 02:50:27 +00:00
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 :)
2011-04-03 21:46:52 +00:00
Pierrick Charron
e8486cc374
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 :)
2011-04-03 21:46:52 +00:00
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.
2011-03-27 22:44:34 +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
39e0aa4dc6
- Fixed bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
2011-03-23 22:46:04 +00:00
Felipe Pena
0ab7f1cebf
- Fixed bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
2011-03-23 22:46:04 +00:00
Felipe Pena
0dd448cbf1
- Fixed bug #54281 (Crash in non-initialized RecursiveIteratorIterator)
2011-03-22 22:41:16 +00:00
Felipe Pena
11c4a5b96a
- Fixed bug #54281 (Crash in non-initialized RecursiveIteratorIterator)
2011-03-22 22:41:16 +00:00
Gustavo André dos Santos Lopes
f06e3ba5c1
- Fixed bug #54291 (Crash iterating DirectoryIterator for dir name starting
...
with \0).
2011-03-19 23:15:04 +00:00
Gustavo André dos Santos Lopes
8deb11c0c3
- Fixed bug #54291 (Crash iterating DirectoryIterator for dir name starting
...
with \0).
2011-03-19 23:15:04 +00:00
Felipe Pena
67fa13a3ca
- Fixed bug #49608 (Using CachingIterator on DirectoryIterator instance segfaults)
2011-03-08 19:56:29 +00:00
Felipe Pena
c7e7de3485
- Fixed bug #49608 (Using CachingIterator on DirectoryIterator instance segfaults)
2011-03-08 19:56:29 +00:00
Felipe Pena
53b1c76efe
- Fixed SplObjectStorage::offsetSet arginfo, reported in bug #54118
2011-03-01 00:13:23 +00:00
Felipe Pena
18097605b7
- Fixed SplObjectStorage::offsetSet arginfo, reported in bug #54118
2011-03-01 00:13:23 +00:00
Felipe Pena
54a7e5d7c3
- Fixed memory leak in DirectoryIterator::getExtension() and SplFileInfo::getExtension()
2011-02-20 16:33:53 +00:00
Felipe Pena
a47eb9a4d6
- Fixed memory leak in DirectoryIterator::getExtension() and SplFileInfo::getExtension()
2011-02-20 16:33:53 +00:00
Felipe Pena
5b442c82f0
- Fixed bug #54040 (Logical && where & probably needed in spl_iterators)
2011-02-20 16:09:50 +00:00
Felipe Pena
c4850dbf88
- Fixed bug #54040 (Logical && where & probably needed in spl_iterators)
2011-02-20 16:09:50 +00:00
Peter Cowburn
14c6cc5b7f
MFH - Added SplFileInfo::getExtension() (FR #48767 )
2011-02-11 22:07:22 +00:00
Adam Harvey
6bc25ca285
Fix bug #53914 (SPL assumes HAVE_GLOB is defined). Original patch by Chris
...
Jones; test updates by myself.
2011-02-04 10:49:49 +00:00
Adam Harvey
a7d4b80ca2
Fix bug #53914 (SPL assumes HAVE_GLOB is defined). Original patch by Chris
...
Jones; test updates by myself.
2011-02-04 10:49:49 +00:00
Adam Harvey
3571c955b5
Implement request #53659 (Implementing RegexIterator::getRegex() method). Patch
...
by Joshua Thijssen.
2011-01-06 02:32:02 +00:00
Adam Harvey
e4fe297006
Remove empty files left when r306542 was reverted in r306552.
2011-01-06 02:24:49 +00:00
Adam Harvey
e7a1d5004e
Remove empty files left when r306542 was reverted in r306552.
2011-01-06 02:24:49 +00:00
Etienne Kneuss
47fc5e06f0
Implement SplObjectStorage::removeAllExcept (Patch by Matthey Turland)
2011-01-05 15:01:18 +00:00
Etienne Kneuss
78728e33fa
Implement SplObjectStorage::removeAllExcept (Patch by Matthey Turland)
2011-01-05 15:01:18 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Eyal Teutsch
cc1759598f
SplFileObject_fgetcsv files: SplFileObject__fgetcsv.csv used instead of SplFileObject::fgetcsv.csv, as to make this naming convetion windows legitimate
2010-12-26 13:29:29 +00:00
Eyal Teutsch
83ef8850a0
SplFileObject_fgetcsv files: SplFileObject__fgetcsv.csv used instead of SplFileObject::fgetcsv.csv, as to make this naming convetion windows legitimate
2010-12-26 13:29:29 +00:00
Peter Cowburn
064a254483
Implemented FR #48767 (SplFileInfo::getExtension())
2010-12-23 22:32:52 +00:00
Gustavo André dos Santos Lopes
9b698dbcea
- Revert of revision 306542, turns out the semantics of compare() are
...
different in SplMinHeap and SplMaxHeap.
2010-12-21 19:52:17 +00:00
Gustavo André dos Santos Lopes
8f44d2ca36
- Revert of revision 306542, turns out the semantics of compare() are
...
different in SplMinHeap and SplMaxHeap.
2010-12-21 19:52:17 +00:00
Gustavo André dos Santos Lopes
4a11d76a75
- Fixed bug #53588 (SplMinHeap bad sorting with custom compare
...
function).
2010-12-21 17:29:14 +00:00
Gustavo André dos Santos Lopes
e427e312d4
- Fixed bug #53588 (SplMinHeap bad sorting with custom compare
...
function).
2010-12-21 17:29:14 +00:00
Pierre Joye
aea6771d19
- add phpize support for windows, need a nmake install for now (nmake devel-pkg version is coming), works exactly the same as on unix, or should :)
2010-12-13 18:43:10 +00:00
Eyal Teutsch
95c4e449d1
moved the second unlink() to the CLEAN section in the SplFileObject_fwrite_variation* tests
2010-12-12 07:24:51 +00:00
Eyal Teutsch
8e2475a787
moved the second unlink() to the CLEAN section in the SplFileObject_fwrite_variation* tests
2010-12-12 07:24:51 +00:00
Pierre Joye
a7ffa09e18
- add PHP_INSTALL_HEADERS to all parts (core&exts) exposing headers, generate the install-headers cmd
2010-12-11 22:18:10 +00:00
Felipe Pena
9864040e35
- Fixed bug #53515 (property_exists incorrect on ArrayObject null and 0 values)
2010-12-10 23:58:33 +00:00
Felipe Pena
13c99651fc
- Fixed bug #53515 (property_exists incorrect on ArrayObject null and 0 values)
2010-12-10 23:58:33 +00:00
Dmitry Stogov
c35fc78890
Fixed bug #53511 (Exceptions are lost in case an exception is thrown in catch operator)
2010-12-09 16:38:37 +00:00
Eyal Teutsch
7eb70247a3
test bug42364 included a superfluous ?>
2010-12-09 12:39:21 +00:00
Eyal Teutsch
f69051602a
test bug42364 included a superfluous ?>
2010-12-09 12:39:21 +00:00
Felipe Pena
9608da9443
- Fixed bug #53362 (Segmentation fault when extending SplFixedArray)
2010-11-19 20:07:32 +00:00
Felipe Pena
f16059d697
- Fixed bug #53362 (Segmentation fault when extending SplFixedArray)
2010-11-19 20:07:32 +00:00
Jani Taskinen
d225fe4e58
- Fix test
2010-11-17 14:54:37 +00:00
Jani Taskinen
6d7fa61843
- Fix test
2010-11-17 14:54:37 +00:00
Felipe Pena
6958cb4a14
- Added missing void arg checks
2010-11-14 18:40:08 +00:00
Felipe Pena
8192f0f771
- Added missing void arg checks
2010-11-14 18:40:08 +00:00
Adam Harvey
6cb7ea4089
Implemented FR #53264 (Add fputcsv method to SplFileObject).
2010-11-09 15:07:50 +00:00
Adam Harvey
150a741fee
Fix bug #53279 (SplFileObject doesn't initialise default CSV escape character).
2010-11-09 14:53:23 +00:00
Adam Harvey
84dc845ff8
Fix bug #53279 (SplFileObject doesn't initialise default CSV escape character).
2010-11-09 14:53:23 +00:00
Felipe Pena
590ad22361
- Fix the fix (wrong behavior)
2010-11-08 20:26:14 +00:00
Felipe Pena
22f7998a0d
- Fix the fix (wrong behavior)
2010-11-08 20:26:14 +00:00
Felipe Pena
7636635ec5
- Fixed bug #50579 (RegexIterator::REPLACE doesn't work)
2010-11-06 00:09:50 +00:00
Felipe Pena
d31e4e7f8e
- Fixed bug #50579 (RegexIterator::REPLACE doesn't work)
2010-11-06 00:09:50 +00:00
Gustavo André dos Santos Lopes
384cd8cda5
- 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).
2010-10-25 02:03:20 +00:00
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).
2010-10-25 02:03:20 +00:00
Gustavo André dos Santos Lopes
5721132c29
- Fixed bug #53071 (SPLObjectStorage defeats gc_collect_cycles).
2010-10-25 01:41:54 +00:00
Gustavo André dos Santos Lopes
7fcce35f9b
- Fixed bug #53071 (SPLObjectStorage defeats gc_collect_cycles).
2010-10-25 01:41:54 +00:00
Felipe Pena
f0d2559d26
- Fixed bug #53144 (SplObjectStorage::removeAll())
2010-10-24 14:03:07 +00:00
Felipe Pena
6887b97a8d
- Fixed bug #53144 (SplObjectStorage::removeAll())
2010-10-24 14:03:07 +00:00
Pierre Joye
2b04364852
- Implement bug #51804 , splFileInfo::getLinkTarget() on Windows
2010-09-10 14:17:40 +00:00
Pierre Joye
b4368a76cd
- Implement bug #51804 , splFileInfo::getLinkTarget() on Windows
2010-09-10 14:17:40 +00:00
Felipe Pena
2fb2f81538
- Improved fix for bug #52573
2010-08-18 01:59:37 +00:00
Felipe Pena
f3028b9226
- Improved fix for bug #52573
2010-08-18 01:59:37 +00:00
Felipe Pena
658272c9ee
- Fixed bug #52573 (SplFileObject::fscanf Segmentation fault)
2010-08-10 22:37:24 +00:00
Felipe Pena
c10bb27254
- Fixed bug #52573 (SplFileObject::fscanf Segmentation fault)
2010-08-10 22:37:24 +00:00
Felipe Pena
904b9282fe
- Fixed bug #50481 (Storing many SPLFixedArray in an array crashes)
2010-08-08 23:56:29 +00:00
Felipe Pena
84bc1c8593
- Fixed bug #50481 (Storing many SPLFixedArray in an array crashes)
2010-08-08 23:56:29 +00:00
Felipe Pena
5f790678ec
- Fixed ZTS build
2010-07-07 22:46:54 +00:00
Felipe Pena
c0c5c1ad4c
- Fixed ZTS build
2010-07-07 22:46:54 +00:00
Etienne Kneuss
a3bf7aa4fe
Fixed #51697 (Unsafe operations in free_storage of SPL iterators,
...
causes crashes during shutdown)
2010-07-07 21:55:17 +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
e46fee1d1a
Fix bug #52238 : Crash when an Exception occured in iterator_to_array
2010-07-02 19:17:45 +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
Stanislav Malyshev
865f85718f
fix SplObjectStorage unserialization (CVE-2010-2225)
2010-06-29 00:58:31 +00:00
Stanislav Malyshev
de8022e905
fix SplObjectStorage unserialization (CVE-2010-2225)
2010-06-29 00:58:31 +00:00
Ben Longden
ddc9246071
Merged SplFileObject::fgetcsv tests from trunk
2010-06-15 21:42:04 +00:00
Ben Longden
45bd9b385e
Added tests for SplFileObject::fgetcsv
2010-06-15 21:25:47 +00:00
Ben Longden
d1c912628d
Merged SplTempFileObject tests from trunk
2010-06-15 11:20:21 +00:00
Ben Longden
675a0539db
Tests for SplTempFileObject
...
Basic usage (no params)
Basic usage (with max memory specified)
Variation (passing a neg value to the constructor)
Error (Passing a non long int value to constructor)
2010-06-15 10:50:53 +00:00
Felipe Pena
a14dd7502b
- Fixed bug #51991 (spl_autoload and *nix support with namespace)
2010-06-04 00:10:15 +00:00
Felipe Pena
18dd664e5c
- Fixed bug #51991 (spl_autoload and *nix support with namespace)
2010-06-04 00:10:15 +00:00
Felipe Pena
f4dcfef570
- Fix test
2010-06-03 23:22:39 +00:00
Michael Wallner
89e93723fb
Added support for object references in recursive serialize() calls. FR #36424
2010-05-26 07:24:37 +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
Dmitry Stogov
24704df3a8
Fixed a possible memory corruption in ArrayObject::uasort() Reported by Stefan Esser
2010-05-13 08:09:54 +00:00
Dmitry Stogov
f5ef32e7ab
Fixed a possible memory corruption in ArrayObject::uasort() Reported by Stefan Esser
2010-05-13 08:09:54 +00:00
Etienne Kneuss
74396cf3d2
fix the fix for the fix
2010-05-10 13:03:33 +00:00
Etienne Kneuss
815db040a9
Fix crash
2010-05-10 12:38:13 +00:00
Felipe Pena
8d46707889
- Fix crash when instantiating MultipleIterator
2010-05-10 01:39:58 +00:00
Kalle Sommer Nielsen
5c628d550b
Fix build, declarings first
2010-05-03 09:21:21 +00:00
Etienne Kneuss
f9532adcc6
Fix misplaced code
2010-04-29 17:14:37 +00:00
Etienne Kneuss
e6ee260b25
Implement SplObjectStorage::getHash()
2010-04-29 15:47:41 +00:00
Dmitry Stogov
9424d420fb
Fixed memory leak in ext/spl/tests/spl_autoload_bug48541.phpt
2010-04-27 13:31:55 +00:00
Etienne Kneuss
a5d361e3ea
Fixed #48361 (SplFileInfo::getPathName() should return the parent
2010-04-27 08:56:01 +00:00
Etienne Kneuss
07a6d66276
Fixed #48361 (SplFileInfo::getPathName() should return the parent
2010-04-27 08:56:01 +00:00
Etienne Kneuss
c200eeeb61
Fix #51374 (Wrongly initialized object properties)
2010-04-27 05:58:39 +00:00
Etienne Kneuss
739ebcc66e
Fix #51374 (Wrongly initialized object properties)
2010-04-27 05:58:39 +00:00
Etienne Kneuss
9f16874a53
Fix #49723 (Skip seek when unnecessary)
2010-04-27 04:57:48 +00:00
Etienne Kneuss
6f5f6d2bca
Fix #49723 (Skip seek when unnecessary)
2010-04-27 04:57:48 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Felipe Pena
0a6bcd44a7
- Removed allow_call_time_pass_reference (Pierrick)
2010-04-26 00:13:34 +00:00
Etienne Kneuss
eb88d58e6c
Fix #51532 (Invalid prototype for SplFileInfo::fscanf)
2010-04-25 05:18:42 +00:00
Etienne Kneuss
d8c8cb4cca
Fix #51532 (Invalid prototype for SplFileInfo::fscanf)
2010-04-25 05:18:42 +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
Felipe Pena
a90c801c2f
- Fixed tests
2010-04-03 15:42:42 +00:00
Felipe Pena
4d571dee74
- Fixed tests
2010-04-03 15:42:42 +00:00
Peter Cowburn
fbbe3e3686
Corrected typo in LimitIterator offset exception. Fixes #51119
2010-02-22 23:55:30 +00:00
Johannes Schlüter
85fcabf3ce
- A few more extern declarations
2010-01-19 13:24:02 +00:00
Johannes Schlüter
00afa7278b
- Add extern declarations for fixing the build with some compilers
2010-01-19 10:44:36 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
William Martin
d06e06007a
Backported 5.3 tests to 5.2 and added more RecursiveIteratorIterator tests
2009-12-08 19:51:56 +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
Etienne Kneuss
ef2b799a28
Fix bug #49263 (Offset error when unserializing self-references in SplObjectStorage)
2009-10-06 13:34:56 +00:00
Dmitry Stogov
42b62e7ca6
Fixed ext/spl/tests/arrayObject_magicMethods2.phpt
2009-09-22 07:54:06 +00:00
Antony Dovgal
66990d357c
nuke duplicated tests
2009-08-31 15:32:39 +00:00
Zoe Slattery
4cc35aeaaf
The last of the 2009 testfest tests
2009-08-30 18:18:50 +00:00
Zoe Slattery
0e4ce3bcca
More tests from 2009 testfest
2009-08-28 14:31:19 +00:00
Zoe Slattery
1c98e49afd
Test from 2009 testfest
2009-08-26 17:17:58 +00:00
Etienne Kneuss
6e164aa35a
Fix several recursion problems when var_dump'ing self-referencing objects
2009-08-13 22:07:05 +00:00
Etienne Kneuss
8fd8c65df6
Addref on clone as well
2009-08-02 21:21:46 +00:00
Antony Dovgal
9a7bf0436a
fix test
2009-08-02 20:49:20 +00:00
Hannes Magnusson
cc23b8d600
MFH: Fixed bug #44144 & add test
2009-07-28 22:25:31 +00:00
Jani Taskinen
855034b955
- Fixed bug #49032 (SplFileObject::fscanf() variables passed by reference)
2009-07-23 14:42:46 +00:00
Ilia Alshanetsky
c16b7585f6
Fixed bug #48788 (RecursiveDirectoryIterator doesn't descend into symlinked
...
directories).
[DOC]
To avoid breaking how existing code works a new constant is introduced for
the RecursiveDirectoryIterator() that directs the code to follow symlinks.
This constant RecursiveDirectoryIterator::FOLLOW_SYMLINKS can be passed a
flag to the constructor to trigger symlink following.
2009-07-08 03:06:59 +00:00
Zoe Slattery
b37019f963
fix test
2009-07-05 14:46:08 +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
Christian Seiler
b4a43d0d94
MFH: spl_autoload_unregister/spl_autoload_functions and closures
2009-06-30 17:14:37 +00:00
Dmitry Stogov
e583ce82ec
Fixed bug #48643 (String functions memory issue)
2009-06-24 08:53:18 +00:00
Johannes Schlüter
aded4474fc
MFH: Fix build problem (Kalle)
2009-06-23 18:14:27 +00:00
Scott MacVicar
3e58e86d01
MFH Add SplDoublyLinkedList::prev() and fix a memory leak when the iterator pointer isn't at the end
2009-06-17 13:27:09 +00:00
Greg Beaver
79d05eac0d
fix Bug #48541 : spl_autoload_register only registers first closure, then leaks the others. Fix missing erealloc in fix for bug #40091 (PHP_5_3 only)
2009-06-13 17:30:50 +00:00
Scott MacVicar
fc8426ad31
MFH Fix bug #48493 - spl_autoload_register can leave the HT in an inconsistent way.
...
Need to point the second elements previous item to head so we can traverse upwards.
2009-06-09 01:58:07 +00:00
Etienne Kneuss
b8d64e4085
MFH: Include other flags as well
2009-06-04 14:46:26 +00:00
Zoe Slattery
2e8ad7f7d1
Commiting testfest tests from tek
2009-06-03 12:30:40 +00:00
Felipe Pena
0873648ef0
- New tests (testfest NorthWestUG)
2009-05-23 15:38:18 +00:00
Felipe Pena
941ac63eef
- MFH: Added missing param checks
2009-05-23 15:14:15 +00:00
Arnaud Le Blanc
52cc098a90
MFH: Better fix for #45622 (patch by robinf at php do net)
2009-05-21 13:26:14 +00:00
Felipe Pena
6f75314b84
- New tests (testfet LondonUG)
2009-05-17 15:24:08 +00:00
Etienne Kneuss
bc75208538
MFH: Fix bug #47534 (RecursiveDirectoryIterator::getChildren ignoring CURRENT_AS_PATHNAME)
2009-05-09 21:06:59 +00:00
Scott MacVicar
cc33f375a6
MFH Broken test when you have a snapshot as it relies on CVS
2009-05-09 20:18:43 +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
Kalle Sommer Nielsen
895327b202
MFH: Update copyright year + line feeds
2009-05-02 01:53:45 +00:00
Felipe Pena
f55c56b74b
- MFH: Fixed bug #48120 (Implementing abstract class FilterIterator in regexiterator.inc)
2009-05-01 01:55:41 +00:00
Sebastian Schürmann
7e5a07ab93
- fix tests
...
- output of spl_classes differs from 5_2 to 5_3, changed to is_array
2009-04-26 23:58:44 +00:00
Sebastian Schürmann
d2672abf45
Initial commit
2009-04-25 11:19:40 +00:00
Etienne Kneuss
3b90499884
MFH: Fix #48023 (spl_autoload_register didn't store closures)
2009-04-20 14:20:20 +00:00
Hannes Magnusson
33e01788ef
MFH: Use obscure name
2009-04-06 09:31:52 +00:00
Etienne Kneuss
8623e9db8b
MFH: Fix #47231 (offsetGet error using incorrect offset)
2009-03-19 03:01:37 +00:00
Etienne Kneuss
c44d7b3576
MFH: Add test covering for #47671
2009-03-19 02:47:00 +00:00