Commit Graph

210 Commits

Author SHA1 Message Date
Sara Golemon
a8ca40564c Minor fixes (bjori) 2006-05-30 19:05:21 +00:00
Marcus Boerger
f876597452 - Fix handling of third parameter to iterator_apply()
- Add test
2006-05-26 01:40:57 +00:00
Antony Dovgal
a2f0632198 fix test 2006-05-24 23:05:30 +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
9264ec9b63 - There is a problem in the string / unicode comparison here which we
do not want to test here, so simply drop the part which is irrelevant
  to the actual test
2006-05-21 12:48:42 +00:00
Marcus Boerger
97e798257a - Remove duplicate error message and add new test 2006-05-21 12:42:00 +00:00
Marcus Boerger
0a0d7b046d - Split up the test in different problem categories 2006-05-20 20:38:28 +00:00
Marcus Boerger
9b314a8406 - Update test 2006-05-20 19:01:22 +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
4c75c6bf29 - Add new test 2006-05-18 22:51:23 +00:00
Marcus Boerger
fae99963dc - Add new test 2006-05-18 22:41:14 +00:00
Marcus Boerger
fbb48b6f26 - Add new test 2006-05-18 21:56:57 +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
Marcus Boerger
ac0a0664ce - Fix test in unicode mode 2006-05-18 21:40:30 +00:00
Marcus Boerger
59bf03c6a8 - Fixed Bug #37457 (Crash when an exception is thrown in accept() method of FilterIterator) 2006-05-16 08:19:56 +00:00
Andrei Zmievski
a331a4d5f1 MFB 2006-05-10 16:51:18 +00:00
Marcus Boerger
091360caa1 - Fix issue related to #36941 (when referencing itself) 2006-04-03 19:52:02 +00:00
Marcus Boerger
8e97252506 - Behavior fix for #36941 2006-04-02 15:04:04 +00:00
Marcus Boerger
ac099ca676 - Bugfix #36941 (ArrayIterator does not clone itself) 2006-04-01 22:39:42 +00:00
Antony Dovgal
1160f87d1d MF51: fix segfault when assigning value by ref and add test 2006-04-01 19:14:01 +00:00
Dmitry Stogov
daca456e1a Fixed test 2006-03-27 13:53:19 +00:00
Marcus Boerger
3865420180 - My eyes hurt 2006-03-23 21:26:50 +00:00
Antony Dovgal
24efa95ab0 add missing skipif sections 2006-03-23 15:05:02 +00:00
Antony Dovgal
b45ea555bc fix typos 2006-03-23 14:55:48 +00:00
Marcus Boerger
d512b99ef3 - Make spl_autoload_unregister() accept any callable like spl_autoload_register() 2006-03-23 12:55:58 +00:00
Marcus Boerger
bf72bc827c - Add new test 2006-03-23 12:20:35 +00:00
Marcus Boerger
59da8ffea1 - Add new test 2006-03-23 11:57:15 +00:00
Marcus Boerger
6b923244b0 - MF51 Add missing bug title and synch with other tests 2006-03-23 11:49:53 +00:00
Antony Dovgal
c2e7761de4 fix leak, add test 2006-03-22 23:12:38 +00:00
Marcus Boerger
ff359fab7f - Fix test 2006-03-16 00:40:11 +00:00
Marcus Boerger
dbb83bc10e - One skipif section is enough 2006-03-04 16:40:54 +00:00
Marcus Boerger
3e986adfe3 - Unicode... 2006-03-03 23:51:40 +00:00
Marcus Boerger
e86cc2a41d - Add new test 2006-03-03 23:48:36 +00:00
Marcus Boerger
75c95e09c3 - Add new test 2006-03-03 23:35:06 +00:00
Marcus Boerger
742c59862d - Test addition 2006-03-03 22:58:13 +00:00
Marcus Boerger
b9630ddf52 - Fix issue with LimitIterator 2006-03-03 22:56:27 +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
36002f16c3 Fixed test file 2006-02-22 12:22:07 +00:00
Marcus Boerger
9b8b9632cd - Add new test 2006-02-06 01:28:08 +00:00
Marcus Boerger
1ea1975817 - Synch c-level iterator and iterator methods
- Fix iterator checks
# A nice discussion with Andrei made me remember this issue
2006-02-06 00:58:11 +00:00
Antony Dovgal
c4daf2fffa add test for bug #36258 2006-02-02 13:57:04 +00:00
foobar
6102ec3a06 - Remove wrong inline usage (and fix bug #35796) 2005-12-25 16:03:38 +00:00
Antony Dovgal
73db3873cc MFB: merge two skipif entries 2005-12-22 00:20:44 +00:00
Marcus Boerger
8a7a093996 - Add missing skipif 2005-12-21 22:21:54 +00:00
Antony Dovgal
3e2d9c2549 fix spelling 2005-12-18 20:57:06 +00:00
Marcus Boerger
cea4c80b88 - Add new tests 2005-12-16 22:22:14 +00:00
Dmitry Stogov
8010c59c88 Unicode support 2005-12-07 16:52:13 +00:00
Marcus Boerger
15f4a227e0 - Make SimpleXMLIterator implement Countable 2005-10-31 20:29:34 +00:00
Marcus Boerger
82aa412cf8 - Fix unicode expectations 2005-10-30 14:00:45 +00:00
Marcus Boerger
5303f42825 - Use var_dump() and fix test expectations 2005-10-29 21:01:03 +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
070ed30039 - Throw an exception if an illegal string value is being used in ArrayObject::offsetSet() 2005-10-03 17:58:47 +00:00
Dmitry Stogov
1b1b864941 Unicode support 2005-09-26 07:23:49 +00:00
Marcus Boerger
7e1763a115 - Implement RecursiveIteratorIterator::setMaxDepth()/getMaxDepth() 2005-09-25 12:01:31 +00:00
Antony Dovgal
c6e6b44b82 MF5.0: add new test 2005-09-19 18:59:50 +00:00
Dmitry Stogov
f6a20bad6e Unicode support 2005-09-19 07:49:13 +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
Derick Rethans
0f391bb0b3 - Add E_RECOVERABLE.
#- Thought I did this before already actually...
2005-09-15 16:19:48 +00:00
Marcus Boerger
50301ddc98 - Rename file class again by popular demmand: calling it SplFileObject now
# Any other idea about the name? Or should i come up with a renaming plan
# for the upcoming versions? :-)
2005-09-15 14:07:39 +00:00
Marcus Boerger
8aa7f36a3b - Rename Observer to SplObserver
- Rename Subject to SplSubject
- Move SPL constants to class constants
- Update docu
2005-09-15 03:31:37 +00:00
Dmitry Stogov
ab2e9bc9bd Unicode support 2005-08-22 13:32:46 +00:00
Dmitry Stogov
d0944d74f4 Unicode support 2005-08-16 15:09:51 +00:00
Dmitry Stogov
909e0a1c4e Unicode support 2005-08-15 17:29:07 +00:00
Dmitry Stogov
08fe0d1da3 Test engine is improved to support unicode mode 2005-08-15 14:37:55 +00:00
Dmitry Stogov
0bdfac1169 Tests are fixed according to new var_dump()/pront_r() format (to pass in non-unicode mode) 2005-08-15 07:55:41 +00:00
Marcus Boerger
95064517d3 - Support non static class loader methods 2005-08-11 01:19:11 +00:00
Marcus Boerger
20de5cc091 - Implement SplObjectStorage as announced during OSCON
# This class starts naming of new classes in Spl by prefix Spl as dicussed.
# The class reduces object storage complexity from O(n) to O(1) which is
# not possible in user space.
2005-08-10 21:56:01 +00:00
Marcus Boerger
aa53dcddab - Support sttaic class loader methods 2005-08-10 08:31:57 +00:00
Dmitry Stogov
73c8a340cf Fixed test file (.inc.php -> .php) 2005-08-10 06:36:25 +00:00
Marcus Boerger
0b34e041e3 - Before we later run into BC trouble we split flags into two params mode
and flags now before branching for 5.1.
2005-07-28 21:09:02 +00:00
Marcus Boerger
efcfe44299 - Use correct/complete skipif condition 2005-07-20 07:33:19 +00:00
foobar
3996e49272 one might not have simplexml enabled 2005-06-28 10:17:01 +00:00
Marcus Boerger
74a63cc1b2 - Fixed #33136:
- Allow ArrayObject::offsetSet(NULL, $value) as replacement for [] = $value
- Fix memleaks with overloading ArrayObject
2005-06-20 03:02:52 +00:00
Marcus Boerger
6a67d06c26 - Fix handling of ArrayObject/ArrayIterator flags and provide test 2005-06-20 00:19:18 +00:00
Marcus Boerger
cccdec3577 - Update tests after correcting internal order of actions 2005-05-19 15:49:44 +00:00
Marcus Boerger
177ea26dc1 - Make line counting work with FileObject::fgetc()
- Add a test for FileObject::fgetc()
- Update docs
2005-05-03 22:18:19 +00:00
Marcus Boerger
287864a611 - Change FileObject's line counting to be zero based
- Make FileObject implement SeekableIterator
- Add tests
2005-05-03 21:11:26 +00:00
Marcus Boerger
733aa2e949 - Make class_parentS() and class_implements() accepts class names as well 2005-04-06 15:16:45 +00:00
Marcus Boerger
58d45bfe2e - Add new test 2005-04-05 09:23:14 +00:00
Marcus Boerger
041524feee - Fix Bug #32394 offsetUnset() segfaults in a foreach 2005-03-21 20:07:33 +00:00
Marcus Boerger
6735e8c2a7 - Update test 2005-03-19 15:15:32 +00:00
Marcus Boerger
fec4937052 - Add new test 2005-03-19 15:09:11 +00:00
Marcus Boerger
f9de3fd02b - Allow to hook into RecursiveIteratorIterator's child handling
- Better=faster function caching for RecursiveIteratorIterator
- Check for exceptions and fix check for illegal return values
- Add UnexpectedValueException
- Add docu
2005-03-12 23:03:33 +00:00
Marcus Boerger
e4ce3e36ef - Negative seeking is not supported 2005-03-05 11:35:13 +00:00
Marcus Boerger
d9145daa61 - Rename test 14 to 16 (which is a new one) and MFB 14 again 2005-03-03 10:48:02 +00:00
Marcus Boerger
7cca51e97e - Fix bug #32134 2005-03-03 10:35:34 +00:00
Marcus Boerger
a50157121d - Finish work on spl_autoload*() 2005-03-03 00:20:57 +00:00
Marcus Boerger
30ee47c1d8 - Let spl_autoload_extensions() always return what's registered 2005-03-02 20:59:06 +00:00
Marcus Boerger
5cb7104630 - Add new functions 2005-03-02 01:14:41 +00:00
Marcus Boerger
1a35bcfcbc - Add new test 2005-02-12 18:40:19 +00:00
Marcus Boerger
3fb1c65a41 - Initial Observer implementation 2005-02-08 20:42:48 +00:00
Marcus Boerger
a8552cb2f9 - Add missing '?>' 2005-02-07 16:27:41 +00:00
Marcus Boerger
5cabd2f12b - Move tests to proper location now that the tested classes are hardcoded 2005-01-27 00:34:13 +00:00
Marcus Boerger
faba10853f - Unify 2005-01-27 00:26:13 +00:00
Marcus Boerger
f1e34911a9 - Add new test 2005-01-27 00:22:28 +00:00
Marcus Boerger
b570ad759b - Unify 2005-01-24 21:28:56 +00:00
Marcus Boerger
e1737ca88a - Bugfix #31346 2005-01-24 21:27:36 +00:00
Marcus Boerger
36e6841ef5 - Add new test 2005-01-24 20:22:56 +00:00