Commit Graph

290 Commits

Author SHA1 Message Date
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
Marcus Boerger
a59551d771 - Add new tests 2004-11-10 19:22:26 +00:00
Marcus Boerger
4b76d82fe3 - Add new test 2004-11-04 22:07:18 +00:00
Marcus Boerger
3b7e24cab2 - Add RecursiveIteratorIterator::beginChildren(), endChildren() 2004-11-01 22:54:12 +00:00
Marcus Boerger
8e3a8b1e8e - Add interface Countable (PECL #30113) 2004-11-01 10:45:54 +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
6349f46e38 - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
Marcus Boerger
35e78f43a1 - Add missing --SKIPIF-- 2004-09-29 20:10:12 +00:00
Marcus Boerger
d748f8ecf2 - Fix tests (atm preg_match() is wrong) 2004-09-29 20:09:52 +00:00
Marcus Boerger
c9d32d9b71 - Update test 2004-09-29 19:36:30 +00:00
Marcus Boerger
2f40d61bed - Fix test 2004-09-29 09:43:33 +00:00
Marcus Boerger
7133858532 - Fix test by removing corrupt --SKIPIF-- 2004-09-29 09:41:18 +00:00
Marcus Boerger
b16ae3b73a add new test 2004-09-09 07:46:19 +00:00
Marcus Boerger
1cd7013517 Add new test for seeking 2004-08-31 20:54:31 +00:00
Marcus Boerger
dc66fb1f10 Fixed bug #28822: ArrayObject::offsetExists() works inverted 2004-06-21 19:15:27 +00:00
Marcus Boerger
74f21310e3 - ArrayObject::append() must not be called when it refers to an object 2004-04-29 22:25:45 +00:00
Marcus Boerger
bf5f758c93 - Remove unused variable
- Respect visibility in count() and add a test for that
2004-04-29 07:22:02 +00:00
Marcus Boerger
4cdc3117c7 - DOS 2 UNIX 2004-04-28 19:58:47 +00:00
Marcus Boerger
c56ca79733 Fix test 2004-04-27 15:48:20 +00:00
Marcus Boerger
5b755c40ea Fix several issues
- bugfix #27063
- bugfix #27929
- bugfix #28099
- bugfix #28125
# The amount of code is needed to solve the return by reference problem.
# dual_it and derived also need their own iterator handlers to be able
# to return by reference.
2004-04-25 11:14:11 +00:00
Marcus Boerger
27aee6b1dd Update error messages in tests 2004-04-13 19:08:54 +00:00
Marcus Boerger
f0c91bac50 New tests (and ordering of tests) 2004-04-13 19:06:39 +00:00
Marcus Boerger
6e3b81e385 Add new test 2004-04-08 22:47:13 +00:00
Marcus Boerger
9f4be8d2cd Fix test 2004-03-20 16:13:37 +00:00
Marcus Boerger
851c254ef8 Fix CachingIterator's ability to cache string conversion results.
Add a test for that.
2004-03-17 19:58:32 +00:00
Marcus Boerger
b967853eb3 Go with implicit call 2004-03-17 19:14:15 +00:00
Marcus Boerger
8cdd2ed319 Explicit cast needed for now 2004-03-17 19:00:44 +00:00
Marcus Boerger
0763dfa16f Update test with check for [] assignment 2004-03-13 20:07:22 +00:00
Marcus Boerger
96cb40a072 Check for ext/spl being available 2004-03-13 20:03:02 +00:00
Marcus Boerger
462bb8b83a Add new test 2004-03-13 20:01:23 +00:00
Marcus Boerger
b6b7c9eb65 Rename hasMore() to valid() as discussed. (Part I) 2004-03-08 17:33:31 +00:00
Marcus Boerger
ab1e2e7c06 Fix ArrayObject 2004-02-12 20:52:48 +00:00
Marcus Boerger
390ae1a8b8 - Fix second issue with #27042
- Little improvement
- Update test
2004-01-28 22:59:03 +00:00
Marcus Boerger
617b8df6c0 Remove test code 2004-01-26 23:20:00 +00:00
Marcus Boerger
5ac404eb64 Fixed bug #27042 (SPL: SeekableIterator seek() broken). 2004-01-26 22:30:25 +00:00
Marcus Boerger
94e64e3d8b Fix problems with manual iteration 2004-01-18 16:25:26 +00:00
Marcus Boerger
309f54384d Add class SimpleXMLIterator 2004-01-18 15:33:38 +00:00
Marcus Boerger
0f2f745393 Cleanup 2003-11-26 23:28:35 +00:00
Marcus Boerger
5757ae3d24 Rename ArrayClass to ArrayObject 2003-11-17 05:32:43 +00:00
Marcus Boerger
a3d6fb043d Update tests 2003-10-23 07:14:50 +00:00
Marcus Boerger
6433226749 Explicit cwqasting is now necessary 2003-09-20 12:51:20 +00:00
Marcus Boerger
cd021cfb3a Go with studlyCaps 2003-09-18 16:26:29 +00:00
Marcus Boerger
0f91d8a4f6 Go with stdlyCaps 2003-09-04 14:44:55 +00:00
Marcus Boerger
142c79d653 Add foreach/continue test 2003-08-10 13:17:02 +00:00
Marcus Boerger
b099670127 - Unset support for spl_array_access by method set($index)
- Parameter names for array interface methods
2003-08-04 21:56:05 +00:00
Marcus Boerger
91a882478f Unset support for spl_array 2003-08-04 20:17:53 +00:00
Marcus Boerger
a68cb5129c - Add class spl_array_it which is the iterator returned by spl_array.
This class can also be used alone without spl_array but doesn't allow
  recursive foreach usage.
- Fix protos to new proto system.
- Add test for spl_array_it.
2003-07-20 01:22:03 +00:00
Marcus Boerger
c038d88769 Add test for class spl_array 2003-07-19 21:04:16 +00:00
Marcus Boerger
aa9bde9a34 Make array write stuff work again correct and fix tests 2003-07-16 10:41:43 +00:00
Marcus Boerger
15097151f4 Update and remove parts no longer possible 2003-07-16 09:48:36 +00:00
Marcus Boerger
f31df5693e Currently we're presented all properties with foreach() 2003-07-08 23:25:18 +00:00
Marcus Boerger
5b3fd9bf2f - Remove namespace leftovers
- Convert some static inline functions to macros
- Faster was of function call parameter stack building
2003-06-17 20:18:10 +00:00
Marcus Boerger
b70cf40742 Goodbye namespaces 2003-06-04 20:54:48 +00:00
Marcus Boerger
9211aed984 Simplify by using __METHOD__ 2003-06-01 16:41:53 +00:00
Marcus Boerger
6d913a3bfc - Fix handling of abstract methods. They must be inherited when inheriting
a method.
- Fix entry more (should be amed has_more).
- Add a check against that bug.
2003-05-26 22:06:49 +00:00
Marcus Boerger
0b4cbe26a7 Add a testcase to foreach/break 2003-05-25 19:24:29 +00:00
Marcus Boerger
29a5535394 Fixes and optimizations 2003-05-24 13:47:49 +00:00
Marcus Boerger
b5a70a72d1 Add spl extension 2003-05-01 23:28:28 +00:00