Commit Graph

44 Commits

Author SHA1 Message Date
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Jani Taskinen
4fc4814012 - Fixed bug #43365 (Several enums have trailing commas) 2007-11-26 10:58:28 +00:00
Marcus Boerger
0d68eebac8 -Addvert optionto RegexIterator 2007-05-11 00:14:36 +00:00
Marcus Boerger
496c1db1b5 - Moving Countable from spl_array.c to spl_iterator.c
allows CachingIterator to implement Countable
2007-02-08 20:13:49 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
e6fb764b43 64bit fixes 2006-09-28 22:32:56 +00:00
Marcus Boerger
bec72dba2a - Update RegexIterator 2006-07-20 21:21:20 +00:00
Marcus Boerger
754a741248 - Upgrade RegexIterator capabilities, see docu 2006-07-16 20:52:20 +00:00
Marcus Boerger
f0e9f6e4f9 - Add function iterator_apply() 2006-05-26 00:37:33 +00:00
Marcus Boerger
c7bf318305 - 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 17:27:12 +00:00
Marcus Boerger
05de29995f - Provide a generic c-level iterator apply function
- Base iterator_to_array() and iterator_count() on it
- Add a testcase
# Somehow there is an issue with exceptions in __destruct() here
2006-05-20 13:23:00 +00:00
Marcus Boerger
4439e2c530 - Fixed CachingIterator issues with string conversion/__toString()
Partly by adding new mode TOSTRING_USE_INNER
2006-05-18 21:41:37 +00:00
Andrei Zmievski
a331a4d5f1 MFB 2006-05-10 16:51:18 +00:00
Marcus Boerger
b43ac2603b - WS 2006-05-09 22:15:16 +00:00
Marcus Boerger
7bb0ca9ce6 - Fix SEGV with AppendIterator when base class constructor was not called
- Generic check to prevent double call to constructors of SPL iterators
2006-03-03 21:35:16 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Marcus Boerger
722613aeb8 - Use pcre_cache_entry* rather than pcre* directly for refcounting
# This prevents a theoretical crash when using too many regexes
2005-10-12 22:52:09 +00:00
Marcus Boerger
68f663eaf8 - Provide const RegExIterator::USE_KEY and actually use it in the test 2005-10-11 00:18:32 +00:00
Marcus Boerger
ac92e5988c - Add (Recursive)RegExIterator 2005-10-10 23:58:42 +00:00
Marcus Boerger
033ffc206d - Add new example directorytree_size.php
- Improve SplFileInfo:
  . add function getFilename()
  . add function getPath()
-Improve RecursiveTreeIterator
  . add const BYPASS_CURRENT to bypass current instead of getting its
    string representation
  . make key() return the parent key() which calls inner iterators key()
- Improve RecursiveDirectoryIterator
  . add consts CURRENT_AS_FILEINFO, KEY_AS_FILENAME, NEW_CURRENT_AND_KEY
  . make current() return getFilename() or getFileInfo() depending on flags
  . make key()     return getPathname() or getFilename() depending on flags
- Improve DirectoryIterator
  . make __construct() accept flags as second parameter
- Update docu
2005-10-08 18:57:17 +00:00
Marcus Boerger
748d497764 - Rewrite flags as hex values 2005-10-03 09:39:35 +00:00
Marcus Boerger
da8c0af034 - Rename here too 2005-09-24 23:48:26 +00:00
Marcus Boerger
02038b4ac4 - Rename 'CachingRecursiveIterator' to 'RecursiveCachingIterator' so that
all of those follow the naming scheme 'Recursive<*>Iterator'
2005-09-18 16:51:24 +00:00
Marcus Boerger
445e382454 - Move RecursiveArrayIterator into .c
- Add ability to control iterator class of ArrayObject
- Implement option to make CachingIterator cache all read elements
- Implement ArrayAccess to CachingIterator to access cached elements
- Update docu
- Update tests
2005-09-18 11:34:36 +00:00
Marcus Boerger
601b8fd2e5 - Register new classes with spl_classes() 2005-08-10 22:01:15 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Marcus Boerger
f3970b8076 - Add intefaces from zend_interface.h as macros 2005-03-06 22:57:45 +00:00
Marcus Boerger
2ce7bcd742 - Allow direct access to spl class entries (SPL cannot be build shared) 2004-11-01 20:57:23 +00:00
Marcus Boerger
b9470609ad - Minor fixes
- Implement AppendIterator in C
2004-11-01 00:26:59 +00:00
Marcus Boerger
9626e9859a - Implement EmptyIterator in C 2004-10-31 20:59:39 +00:00
Marcus Boerger
de3a8ea3e1 - Implement InfiniteIterator in C 2004-10-31 19:49:18 +00:00
Marcus Boerger
90012aa3cc - Implement classes IteratorIterator and NoRewindIterator in C 2004-10-31 18:43:00 +00:00
Marcus Boerger
208a97a221 - Implement OuterIterator in C 2004-10-29 20:12:57 +00:00
Marcus Boerger
6349f46e38 - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
Marcus Boerger
6b0f57ee50 Rename hasMore() to valid() as discussed. (Part II) 2004-03-08 18:05:41 +00:00
Ard Biesheuvel
29053cc6d5 64-bit fix 2004-02-23 01:53:39 +00:00
Marcus Boerger
3b207ccb12 Add cvs tags 2004-01-20 20:59:45 +00:00
Marcus Boerger
0e5b87c5a2 Update copyright 2004-01-08 18:17:39 +00:00
Marcus Boerger
c212ddd5ec Fix a (single) leak
# -> iterators cannot keep current data as zval**, only zval * is possible.
2003-12-10 10:19:43 +00:00
Marcus Boerger
f3a3990ca8 Implement CahingIterator and CachingRecursiveIterator as C-code.
#Script examples/directorytree.php has a few memleaks though but besides
#that all works fine.
2003-12-08 08:39:18 +00:00
Marcus Boerger
7046afb542 Implement SeekableIterator and LimitIterator as C code. 2003-12-06 19:21:02 +00:00
Marcus Boerger
37d7555f98 Add classes from examples: FilterIterator, ParentIterator 2003-12-02 07:18:05 +00:00
Marcus Boerger
159c538bcf Major update:
- Remove all overloading hooks -> array_read/array_access must be rewritten
- Remove all basic iterators
- Remove all 'spl_' prefixing exposed to user level
- Add RecursiveIterator, RecursiveIteratorIterator
- Add DirectoryIterator, DirectoryTreeIterator
- Add some examples
2003-11-09 14:05:36 +00:00