Commit Graph

673 Commits

Author SHA1 Message Date
Marcus Boerger
58c77d3925 - MFH CachingIterator implements Countable 2007-02-19 16:18:24 +00:00
Marcus Boerger
e19f55bb82 - MFH Drop useless stuff 2007-02-13 00:32:32 +00:00
Marcus Boerger
5026a9fd83 - MFH Add new example 2007-02-13 00:19:00 +00:00
Marcus Boerger
7aa2282124 - MFH Add include 2007-02-08 22:54:34 +00:00
Marcus Boerger
ac3b5ebbde - MFH Rearrange code: mode Countable from spl_array.c to spl_iterator.c 2007-02-08 22:17:40 +00:00
Marcus Boerger
1d1ea0b2ca - MFH: Fix Bug #39836 SplObjectStorage empty after unserialize 2007-02-08 22:14:25 +00:00
Antony Dovgal
78e610b4f9 fix classname 2007-01-22 08:36:21 +00:00
Marcus Boerger
d2c8a3bb63 - Add tests 2007-01-21 12:30:19 +00:00
Ilia Alshanetsky
b5228f0c6c Fixed bug #40091 (spl_autoload_register with 2 instances of the same class). 2007-01-10 18:14:37 +00:00
Dmitry Stogov
7c750656f1 Fixed tests 2007-01-10 16:00:31 +00:00
Ilia Alshanetsky
13f006ac69 Fixed bug #38325 (spl_autoload_register() gaves wrong line for "class
not found").
2007-01-08 04:27:29 +00:00
Ilia Alshanetsky
c5fb061cbf Provide means for opening file for zend with error supression. Allows us to
avoid INI hackery such as the one used in SPL.
2007-01-08 03:39:09 +00:00
Ilia Alshanetsky
5068511748 Fixed bug #40036 (empty() does not work correctly with ArrayObject when
using ARRAY_AS_PROPS).
2007-01-07 03:52:44 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Marcus Boerger
b8003b8461 - MFH Bugfix: #39996 Wrong PHPDoc comment for SplFileInfo::getType() 2006-12-31 18:20:22 +00:00
Ilia Alshanetsky
52d53543ac Allocation safety checks 2006-12-25 22:36:57 +00:00
Marcus Boerger
66525a739e - MFH Fix comparison of RecursiveDualIterators 2006-12-10 23:44:49 +00:00
Dmitry Stogov
108a2fc64c Fixed bug #39775 ("Indirect modification ..." message is not shown)
The fix breaks two SimpleXML tests those must be fixed
2006-12-08 15:55:31 +00:00
Antony Dovgal
44a3cad930 MFH: partly fix #39724
ext/spl has a soft dependcy from ext/pcre (not ext/pcre-regex)
2006-12-04 18:01:53 +00:00
Marcus Boerger
5ea32dc1e4 - MFH: Fix handling of recursive inner iterators 2006-12-01 09:29:15 +00:00
Marcus Boerger
ecd417c6ce - MFH: Add new example 2006-11-28 22:20:01 +00:00
Marcus Boerger
d4dc662621 - MFH: Fix arginfo 2006-11-20 20:04:03 +00:00
Marcus Boerger
164929d557 - MFH: Add new test 2006-11-20 19:58:01 +00:00
Hannes Magnusson
a27d73b13d Add missing header installation.. 2006-11-12 19:00:33 +00:00
Hannes Magnusson
3bf35bbc15 MFH: SplFileObject no longer overwrites SplFileInfo::getFilename() 2006-11-12 17:35:09 +00:00
Hannes Magnusson
1182b325c2 MFH: SplFileObject::getFilename() no longer overwrites SplFileInfo::getFilename()
(SplFileObject::getFilename() therefor only returns the filename now)
2006-11-12 17:16:13 +00:00
Marcus Boerger
d3bda9a516 - MFH: Correct comments 2006-11-12 15:58:17 +00:00
Johannes Schlüter
c65a1f10cb - MFH: No C++ comments (fix #39414) 2006-11-07 15:19:11 +00:00
Hannes Magnusson
69dbaaacac MFH: arginfo fixes 2006-11-06 23:20:11 +00:00
Hannes Magnusson
c32408e694 MFH: fix segfault & improve test 2006-11-06 15:21:45 +00:00
Marcus Boerger
15592390c5 - MFH Store length of autoload file exts 2006-11-04 20:27:28 +00:00
Marcus Boerger
76ba475d76 - MFH: Synch 2006-11-03 18:58:41 +00:00
Hannes Magnusson
5006fb2ceb MFH: Fix double "wrong param count" messages 2006-11-03 15:13:17 +00:00
Hannes Magnusson
bece30aee5 MFH: fix crash on invalid regex 2006-11-03 14:11:23 +00:00
Sara Golemon
3042386549 MFH(r-1.114) Can't use real arrays held by ArrayObjects in write context 2006-10-20 02:11:19 +00:00
Hannes Magnusson
281536e866 fix protos 2006-09-29 13:11:28 +00:00
Hannes Magnusson
30b18b7bb7 fix arginfo 2006-09-29 12:29:21 +00:00
Antony Dovgal
7df7d2b4df MFH 2006-09-29 12:18:58 +00:00
Antony Dovgal
478d42a3ac MFH 2006-09-28 22:33:06 +00:00
Antony Dovgal
6a70b05660 MFH: build ext/spl and ext/reflection as static (fixes #38556) 2006-08-23 09:47:21 +00:00
Hannes Magnusson
de3393e63f Fix arginfo for SplObjectStorage 2006-08-23 09:32:24 +00:00
Marcus Boerger
7d0b17fc67 - MFH Add link 2006-08-13 10:37:57 +00:00
Nuno Lopes
c45c9748dc fix #38402: wrong proto for Array*::offsetGet() 2006-08-11 17:05:23 +00:00
Antony Dovgal
4b77e7f2f7 nuke unused variable 2006-08-07 09:49:53 +00:00
Marcus Boerger
444f1f2da3 - MFH Fix cvs access through SplFileObject 2006-08-06 13:47:51 +00:00
Ilia Alshanetsky
499ca00476 Fixed bug #38303 (spl_autoload_register() supress all errors silently). 2006-08-03 14:49:11 +00:00
Marcus Boerger
195417eb4d - MFH Update tests 2006-07-24 23:41:09 +00:00
Marcus Boerger
a6f8252f9b - MFH Update docu 2006-07-21 21:55:43 +00:00
Marcus Boerger
6a738f6b5b - MFH Match code with docu 2006-07-21 21:26:11 +00:00
Marcus Boerger
85963e6300 - MFH Update RegexIterator, Docu & Tests 2006-07-21 20:14:31 +00:00
Marcus Boerger
45d09c71ba - Synch RegexIterator with HEAD 2006-07-20 22:54:21 +00:00
Ilia Alshanetsky
480104a456 Fixed memory leak 2006-07-18 22:42:28 +00:00
Marcus Boerger
34cfec2536 - MFH Fix #38125 undefined reference to spl_dual_it_free_storage 2006-07-17 21:11:33 +00:00
Marcus Boerger
109c89c848 - MFH Typo 2006-07-16 23:48:34 +00:00
Marcus Boerger
f2623f0b50 - MFH Update docu 2006-07-16 23:46:12 +00:00
Marcus Boerger
55f0596fab - MFH:
. Upgrade RegexIterator capabilities, see docu
  . Update docu
  . Add test (which fails right now: iterator_049.phpt)
  . Add tests for new functionality
2006-07-16 21:12:32 +00:00
Marcus Boerger
bd760162e6 - MFH Correct test name 2006-07-16 17:34:37 +00:00
Marcus Boerger
9c30e20bd6 - MFH Implement todo: SplFileObject: ability to set the CSV separator per object 2006-07-15 15:08:41 +00:00
Marcus Boerger
bb3c702162 - MFH Fix issue with SplFileObject and directories 2006-07-15 13:01:59 +00:00
Antony Dovgal
3aaf62d159 there is no Unicode in 5_2 2006-07-11 12:15:11 +00:00
Dmitry Stogov
fbd3ef09ed Fixed memory leaks in ext/spl/tests/fileobject_003.phpt 2006-07-10 15:47:58 +00:00
Marcus Boerger
d26b539c61 - MFH DualIterator 2006-07-09 10:24:32 +00:00
Marcus Boerger
5fee10735f - MFH Add spl_object_hash() 2006-07-09 10:22:27 +00:00
Marcus Boerger
0fd2b96204 - MFH Add test 2006-07-08 12:25:57 +00:00
Hannes Magnusson
aaa1d62614 MFH: fix/add SKIPIF 2006-06-27 00:09:43 +00:00
Dmitry Stogov
1dbaae2795 Added automatic module globals management 2006-06-15 18:33:09 +00:00
Marcus Boerger
e0844e09bd - MFH iterator_apply() 2006-06-07 09:44:42 +00:00
Antony Dovgal
928c20942b plug a leak in ext/spl/tests/iterator_047.phpt 2006-06-06 20:11:35 +00:00
Marcus Boerger
ac2a29913c - Add missing classes 2006-06-04 10:47:22 +00:00
Marcus Boerger
37f5474ce9 - MFH Use engine call to register interfaces (steph) 2006-06-04 10:34:22 +00:00
Sara Golemon
79b21ec4cf MFH: Minor fixes (bjori) 2006-05-30 19:06:22 +00:00
Antony Dovgal
755caecfc9 fix test 2006-05-24 23:04:58 +00:00
Marcus Boerger
e3f89f116a - MFH
. Make code exception safe
  . Make RecursiveRegexIterator::getChildren pass regex to inner ctor
  . Fix CachingIterator::__toString() in TOSTRING_USE_KEY mode
  . Add CachingIterator::getCache()
  . Add tests
2006-05-21 18:13:37 +00:00
Marcus Boerger
96916c95e8 - MFH Sync with head fixes part of an issue with iterator_(to_array|count) 2006-05-20 21:01:42 +00:00
Marcus Boerger
55041d6f3d - MFH Add new test 2006-05-18 22:52:04 +00:00
Marcus Boerger
69079a7537 - MFH Add new test 2006-05-18 22:42:05 +00:00
Marcus Boerger
5e5327a7e0 - MFH Add new test 2006-05-18 21:59:05 +00:00
Marcus Boerger
e33afedd96 - You shall not use %v in 5.*
# Even though it is there it is only meant for pecl dev to ease their pain
2006-05-18 21:48:33 +00:00
Marcus Boerger
7d79686f45 - MFH Fixed CachingIterator issues with string conversion/__toString()
Partly by adding new mode TOSTRING_USE_INNER
2006-05-18 21:42:58 +00:00
Marcus Boerger
26a67b8925 - MFH Fixed Bug #37457 (Crash when an exception is thrown in accept() method of FilterIterator) 2006-05-16 08:21:08 +00:00
Antony Dovgal
046b34955c MFH: fix #37416 (iterator_to_array() hides exceptions thrown in rewind() method) 2006-05-12 09:42:56 +00:00
Marcus Boerger
05273a73d8 - Fix test 2006-05-11 21:01:04 +00:00
Antony Dovgal
8ee1c45a3b fix test 2006-05-11 15:43:28 +00:00
Marcus Boerger
ac3c882bb6 - Use of E_RECOVERABLE_ERROR 2006-05-11 08:06:22 +00:00
Andrei Zmievski
9e0e89c5cf Rename RegExIterator -> RegexIterator.
Also rename recursive one.
2006-05-10 16:50:57 +00:00
Marcus Boerger
3a3e310e2e - MFH: SplFileObject improvements
. FILE_OBJECT_READ_AHEAD: allow to read ahead
  . FILE_OBJECT_SKIP_EMPTY: allow to skip empty lines (includes read ahead)
  . FILE_OBJECT_READ_CSV:   allow to read as csv
2006-05-10 00:31:04 +00:00
Marcus Boerger
982822be93 - Fix iterators part and add tests 2006-05-10 00:29:42 +00:00
Marcus Boerger
9afb3e041b - Update after api changes
- MFH
  . ArrayIterator/ArrayObject: function lookup caches and array functions
  . Added RegExIterator, RecursiveRegExIterator
  . Added (full) caching support for CachingIterator
2006-05-10 00:03:38 +00:00
Antony Dovgal
af429910ef AIX #define's accept as naccept
add a workaround
2006-04-13 13:21:43 +00:00
Antony Dovgal
e8270edf9d fix memory corruptions and leaks when cloning ArrayObjects and ArrayIterators 2006-04-07 22:53:23 +00:00
Antony Dovgal
ad7768ee63 fix #36981 (SplFileObject->fgets() ignores max_length) 2006-04-06 19:01:56 +00:00
Marcus Boerger
c58e1fa5be - MFH
. Fixed bug #36941 (ArrayIterator does not clone itself)
  . Fixed SEGV when ArrayObject/Iterator use reference to self
  . Added tests
2006-04-04 19:53:21 +00:00
Antony Dovgal
9a59df13cc fix segfault when assigning value by ref and add test
(I consider it's wrong that we can't do it, but we shouldn't segfault anyway)
2006-04-01 19:13:04 +00:00
Marcus Boerger
ea9487249b - Make readable 2006-03-30 21:57:28 +00:00
Antony Dovgal
59b8592c8c fix bug #36898 (__set() leaks in classes extending internal ones)
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)

to initialize and destroy zend_object structs
2006-03-29 14:28:43 +00:00
Marcus Boerger
a824bcf41d - MFH: Make IteratorIterator base of most SPL iterators 2006-03-26 02:25:03 +00:00
Marcus Boerger
7b70ca475f - Fix docu 2006-03-26 02:24:33 +00:00
Marcus Boerger
ed43fd9b3b - My eyes don't hurt anymore 2006-03-23 21:28:06 +00:00
Marcus Boerger
fe1c2cfc0f - MFH
. spl_autoload_register() return bool to denote success/failure
  . spl_autoload_unregister() acept any callable
2006-03-23 19:55:16 +00:00
Antony Dovgal
5f80bcaf26 add missing skipif sections 2006-03-23 15:03:27 +00:00