Commit Graph

605 Commits

Author SHA1 Message Date
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
Antony Dovgal
e40df39518 fix typos 2006-03-23 14:56:12 +00:00
Marcus Boerger
1440bb5c7b - MFH Add new test 2006-03-23 12:21:40 +00:00
Marcus Boerger
4b4d61952f - MFH: Add new test 2006-03-23 11:57:34 +00:00
Marcus Boerger
660956b514 - Add missing bug title and synch with other tests 2006-03-23 11:48:59 +00:00
Dmitry Stogov
87ae2460d1 Fixed possible memory corruption 2006-03-23 11:42:32 +00:00
Antony Dovgal
1ce8546cd1 fix leak 2006-03-22 23:12:03 +00:00
Antony Dovgal
09fcf3162c add test 2006-03-22 23:10:59 +00:00
Antony Dovgal
32f611097f fix #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault)
fix similar issue in offsetExists()
remove redundant semicolons
2006-03-22 21:56:40 +00:00
Antony Dovgal
afd781a09a MFH: initialize retval 2006-03-20 13:54:16 +00:00
Marcus Boerger
7c14d86dc3 - Fix test 2006-03-16 00:39:50 +00:00
Frank M. Kromann
c6b8c26cdf Fix Win32 compilation. 2006-03-14 18:07:51 +00:00
Sebastian Bergmann
e1d9cf07cd MFH: Make spl_register_std_class() and spl_register_sub_class() available outside of SPL, for instance in SPL_Types. 2006-03-09 11:43:45 +00:00
Marcus Boerger
4a5dd30201 - MFH Allow pecl/phar and alike too hook into spl_filesystem_object's 2006-03-08 21:54:48 +00:00
Marcus Boerger
a325d22cd1 - MFH Missed 'proto' 2006-03-06 22:22:54 +00:00
Marcus Boerger
dc8221c154 - Fix last %v, too 2006-03-06 10:56:41 +00:00
Marcus Boerger
94165e41a7 - There is no %v in 5.1 (found by Tony) 2006-03-06 10:09:13 +00:00
Marcus Boerger
e795f8f427 - MFH Proto fixes 2006-03-06 09:50:44 +00:00
Marcus Boerger
7dc322754a - Fix issues with not/double calling of constructors of SPL iterators
- Fix issues with info-class/file-class in SPL directory handling classes
- Add SimpleXMLElement::count()
- Drop erroneous RecursiveDirectoryIterator::getSubPathInfo()
- Drop dead code
- Add tests
- Update docu
2006-03-05 17:39:49 +00:00
Marcus Boerger
728493ca37 - MFH Fix issues withhandling of derived info classes as entries 2006-02-28 01:33:32 +00:00
Marcus Boerger
289f45c279 - Synch docu 2006-02-20 22:21:54 +00:00
Marcus Boerger
4b2b9461d4 - MFH No more old parameter api usage 2006-02-12 16:44:36 +00:00
Antony Dovgal
08c4c9c202 MFH: fix #36359 (splFileObject::fwrite() doesn't write when no data length specified) 2006-02-10 16:57:56 +00:00
Antony Dovgal
bccf4bd9e7 MFH: initialize variables and reduce the number of warnings 2006-02-06 11:28:41 +00:00
Marcus Boerger
ff4ee6f043 - MFH Add new tests 2006-02-06 01:28:12 +00:00
Antony Dovgal
aa920b8e00 MFH: fix #36295 (typo in SplFileObject::flock() parameter name) 2006-02-05 19:23:30 +00:00
Marcus Boerger
39d71e375c - MFH Fix bug #36287 2006-02-05 11:43:44 +00:00
Marcus Boerger
a31f337c24 - MFH Fix ArrayIterator::seek() edge cases 2006-02-02 22:17:42 +00:00
Marcus Boerger
a266261eb6 - Fix oversight 2006-02-02 18:59:11 +00:00
Ilia Alshanetsky
0c972edce4 Only use win32 directory separators on win32 or netware. 2006-02-02 15:10:04 +00:00
Antony Dovgal
0655132e2c add test for bug #36258 2006-02-02 13:56:16 +00:00
Antony Dovgal
ff30daae6e MFH: add missing folding tags
nuke unnecessary semicolons
2006-02-02 12:40:33 +00:00
Antony Dovgal
0506d1a9f5 fix #36258 (SplFileObject::getPath() may lead to segfault) 2006-02-02 12:19:14 +00:00
Ilia Alshanetsky
9cbc3ae264 Fixed bug #36134 (DirectoryIterator constructor failed to detect empty
directory names).
2006-01-23 15:24:10 +00:00
Marcus Boerger
2d1d476391 - MFH Fix error message 2006-01-23 02:26:32 +00:00
Marcus Boerger
d059b92fea - MFH Fix issue found by Nuno 2006-01-15 00:17:43 +00:00
Marcus Boerger
1edc8eec88 - Update 2006-01-14 20:21:10 +00:00
Marcus Boerger
c863542dc1 - Fix #35998 (getPathname() method always returns unix style filenames) 2006-01-13 19:36:57 +00:00
Marcus Boerger
58349878fc - MFH Update 2006-01-06 19:58:10 +00:00
foobar
02f405ccb1 MFH 2006-01-06 14:03:37 +00:00
Marcus Boerger
5121b2a78a - MFH Fix docu 2006-01-05 19:00:27 +00:00
Marcus Boerger
47e6f644f7 - MFH Update examples 2006-01-04 15:34:39 +00:00
Marcus Boerger
34f32d4dcd - Just another place where rewind() might not be set 2006-01-01 19:55:27 +00:00
Marcus Boerger
e99fac3d01 - key() might be optional 2006-01-01 19:51:17 +00:00
Marcus Boerger
d6ee7d1d9a - Fix SEGV when rewind() not set 2006-01-01 19:48:11 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
foobar
cfda375620 MFH 2005-12-25 16:04:15 +00:00
Marcus Boerger
319dff73fb - Make this work with VPATH builds too 2005-12-24 12:23:09 +00:00
Marcus Boerger
7f6018aa3a - WS 2005-12-22 00:37:07 +00:00
Marcus Boerger
53e37ac843 - Fix memleak 2005-12-22 00:35:37 +00:00
Antony Dovgal
c01d79b2df merge two skipif entries 2005-12-22 00:19:28 +00:00
Marcus Boerger
0986f33d1e - Fix memleak 2005-12-22 00:06:38 +00:00
Marcus Boerger
fc0fe6472e - MFH Add missing skipif 2005-12-21 22:22:33 +00:00
Marcus Boerger
fe3f66e188 - We need to store the length of the class name 2005-12-21 20:05:24 +00:00
Marcus Boerger
8e43f0085b - Apply workaround only when neccessary 2005-12-20 21:38:28 +00:00
Antony Dovgal
efff8a45e2 more SPL leak fixes 2005-12-20 12:41:24 +00:00
Antony Dovgal
2a130b19fc fix possible reads of uninitialized memory (reproducible only on 64bit platforms) 2005-12-19 13:53:06 +00:00
Marcus Boerger
32220d2e7e - Check for result of getIterator() call 2005-12-19 00:45:28 +00:00
Marcus Boerger
e989e9f70f - Fix reference counting 2005-12-19 00:32:51 +00:00
Antony Dovgal
9e8a1bfcbe fix leak in SPL iterators 2005-12-18 22:52:24 +00:00
Antony Dovgal
0d38bc9f80 MFH: more spelling fixes 2005-12-18 21:01:27 +00:00
Antony Dovgal
5500dea5f1 MFH: fix spelling 2005-12-18 20:57:27 +00:00
Zeev Suraski
b1264f7172 prototype fix 2005-12-18 15:46:46 +00:00
Zeev Suraski
99cd9ed713 Fix protos 2005-12-18 15:40:34 +00:00
Zeev Suraski
2f3678eb44 Fix prototype 2005-12-18 14:00:23 +00:00
Marcus Boerger
70a53e10c6 - Simplify (+fix memleak) 2005-12-16 23:58:38 +00:00
Marcus Boerger
e4210e3851 - Drop superflous param 2005-12-16 22:38:17 +00:00
Marcus Boerger
69fdadf1a0 - Add SplTempFileObject to output 2005-12-16 22:29:02 +00:00
Marcus Boerger
10f77a5d71 - Add/fix tests 2005-12-16 22:19:02 +00:00