Commit Graph

790 Commits

Author SHA1 Message Date
Marcus Boerger
b4271e8f3f - Fix filename in docu 2005-09-19 18:28:01 +00:00
Marcus Boerger
97948f29a9 - Add deprecated/compatibility class for BC 2005-09-19 18:25:23 +00:00
Dmitry Stogov
f6a20bad6e Unicode support 2005-09-19 07:49:13 +00:00
Marcus Boerger
8663b3a191 - Update docu: new slides are available 2005-09-18 17:51:37 +00:00
Marcus Boerger
d9604967ff - Observer/Subject have been renamed 2005-09-18 17:44:50 +00:00
Marcus Boerger
eede773730 - Add missing docu 2005-09-18 17:39:12 +00:00
Marcus Boerger
7a9c654f83 - Derick changed the test but forgot to make the code use E_RECOVERABLE_ERROR 2005-09-18 17:32:52 +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
5f437cd590 - Changed in version 5.1 2005-09-15 03:52:58 +00:00
Marcus Boerger
849fb07201 - MFB 2005-09-15 03:48:38 +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
Marcus Boerger
5deac4859e - Add missing docu tag 2005-09-04 18:57:21 +00:00
Marcus Boerger
4cba6ac94d - Update docu 2005-09-04 18:51:50 +00:00
Marcus Boerger
a826dd2918 - Fix docu 2005-09-02 19:16:43 +00:00
Marcus Boerger
03136fc95d - Update docu 2005-09-02 19:15:30 +00:00
Johannes Schlüter
a221a9742a - Fix alphabetic order and add missing class 2005-08-24 10:16:45 +00:00
Dmitry Stogov
f4b8f4e958 Unicode support cleanup 2005-08-23 09:33:46 +00:00
Dmitry Stogov
ab2e9bc9bd Unicode support 2005-08-22 13:32:46 +00:00
Dmitry Stogov
6b622046dc zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string). 2005-08-22 12:22:16 +00:00
Dmitry Stogov
d0944d74f4 Unicode support 2005-08-16 15:09:51 +00:00
Antony Dovgal
760313346a eliminate compile warning 2005-08-15 23:01:42 +00:00
Marcus Boerger
a24a21ecf0 - No c comment (+ old non unicode way not needed any longer) 2005-08-15 19:16:30 +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
Antony Dovgal
d09b1b1e89 shut up warnings 2005-08-12 20:58:28 +00:00
Sebastian Bergmann
52b001cc05 ZTS fixes. 2005-08-12 14:08:28 +00:00
Dmitry Stogov
e1627558ed Unicode support 2005-08-12 13:09:58 +00:00
Dmitry Stogov
3e7ab37d9f Unicode support 2005-08-12 12:59:20 +00:00
Dmitry Stogov
f39c77dda0 Fixed SIGSEGV 2005-08-12 12:14:31 +00:00
Dmitry Stogov
21c1109e0c Unicode support 2005-08-12 11:29:33 +00:00
Andrei Zmievski
264cec8be6 Unicode support. 2005-08-11 23:36:07 +00:00
Marcus Boerger
95064517d3 - Support non static class loader methods 2005-08-11 01:19:11 +00:00
Marcus Boerger
601b8fd2e5 - Register new classes with spl_classes() 2005-08-10 22:01:15 +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
1434e56f6d - WS 2005-08-10 21:53:53 +00:00
Marcus Boerger
9e38d04a7c - Add RecursiveFilterIterator
- Derive ParentIterator from RecursiveIterator
# Actually brought up by a user. It is of course better to filter first and
# do the recursion only for accepted values. Otherwise you would iterate
# children and possibly recurse into them just to ignore them later anyway.
2005-08-10 19:48:48 +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
af2e8a3db5 - PEAR uses .php not .inc.php 2005-08-09 21:11:42 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Marcus Boerger
cf7089972f - Need to expose this one too 2005-08-02 02:20:01 +00:00
Marcus Boerger
fb5f1b7fad - Update version info 2005-08-02 00:00:41 +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
d608181dc7 - Allow static loader functions (but only for 5.1.1 as discussed with Andi) 2005-07-28 20:59:44 +00:00
Marcus Boerger
a935b06236 - Fix issues with iterators and excpetions
# update documentation
#
# In 5.2 we need to implement an event handler onException() to be invoked
# on exceptions during getChildren() calls. Its default implementation
# would simply rethrow the exception if the flag is not set and delete if
# if it was set. To do so the exceptions refcount needs to be increased
# before calling zend_clear_exception() to keep the exception alive but
# clear the control information.
#
# As a side note this is alos the easy solution to allow multi exception
# handling: Simply clear the engine's exception info and add a property
# called $previousException to the base exception and assign it from the
# already pending one.
2005-07-27 22:19:01 +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
foobar
19639aa9ab Use the new dependency system 2005-06-17 16:42:54 +00:00
Johannes Schlüter
f2fab902c4 fix typos 2005-06-16 21:27:51 +00:00
Dmitry Stogov
aedbdb087d Allowed return by refrence from internal functions 2005-06-16 14:56:13 +00:00
Marcus Boerger
ae35d25940 - Update 2005-05-30 20:10:38 +00:00
Marcus Boerger
309025e8c1 - Small fix (found by joerg) 2005-05-24 17:59:42 +00:00
Marcus Boerger
b45fb630d9 - Add ability to reference the object itself
- Add ability to exchange the refrenced object
- Add ArrayObject::getFlags/setFlags and 2nd param to __construct to
  control operation modes
2005-05-19 15:52:02 +00:00
Marcus Boerger
cccdec3577 - Update tests after correcting internal order of actions 2005-05-19 15:49:44 +00:00
Marcus Boerger
626d781afd - Execute both RecursiveIteratorIterator::beginChildren() and endChildren()
on the same level (while the actual child is available).
2005-05-14 16:40:58 +00:00
Marcus Boerger
a5c37f37b6 - Add ability to fail silently 2005-05-12 21:23:56 +00:00
Marcus Boerger
99c72d0b94 - Update docu 2005-05-04 19:14:08 +00:00
Marcus Boerger
d6d9b15ef7 - Add another note 2005-05-03 22:28: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
51d100a27a - Fix speling
- Add links
2005-05-03 12:09:26 +00:00
Marcus Boerger
4f3b12b3fd - Rename class File to FileObject
# by popular demand
2005-04-14 21:02:09 +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
7e7775a328 - Register class File
- Remove superflous ;
- Stop spl_autoloading on pending exception
2005-04-05 09:24:53 +00:00
Marcus Boerger
2f8d672bfc - Use correct var name 2005-04-05 09:23:50 +00:00
Marcus Boerger
58d45bfe2e - Add new test 2005-04-05 09:23:14 +00:00
Marcus Boerger
7adb2b0c0b - Add RecursiveDirectoryIterator::getSubPathname() 2005-03-31 23:02:20 +00:00
Marcus Boerger
d383735978 - Add RecursiveDirectoryIterator::getSubPath() 2005-03-31 21:51:46 +00:00
Marcus Boerger
530917b463 - Make iterator_to_array() accept Traversable 2005-03-31 21:49:47 +00:00
Marcus Boerger
3eb4162122 - Bugfix #32521 (apache2handler accidental crashes caused by SPL) 2005-03-31 17:17:38 +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
dd54f36d49 - Fix signature definition 2005-03-13 16:35:01 +00:00
Marcus Boerger
5880260c78 - Update docu 2005-03-12 23:21:41 +00:00
Marcus Boerger
6f668d4978 - Fix extension to be .inc 2005-03-12 23:05:03 +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
b924ef8796 - Don't touch refcount/is_ref 2005-03-11 00:44:34 +00:00
Marcus Boerger
56235c6cc8 Fix the fix 2005-03-09 10:29:27 +00:00
Antony Dovgal
a2413c32ce fix build 2005-03-09 09:19:27 +00:00
Marcus Boerger
f0a3e5be17 More line count fixes 2005-03-09 03:07:42 +00:00
Marcus Boerger
b79e8759fc Add documentation 2005-03-09 03:07:07 +00:00
Marcus Boerger
ef17168fd1 No double line counting 2005-03-09 02:54:36 +00:00
Marcus Boerger
b06d0ef758 Add description for interface Serializeable 2005-03-09 01:21:04 +00:00
Johannes Schlüter
0e9e0f62fc - Fix #32238 (spl_array.c: void function cannot return value) 2005-03-08 21:33:15 +00:00
Marcus Boerger
7b64727519 - Add/Correct parameter info and protos 2005-03-08 00:42:49 +00:00
Marcus Boerger
9b8725a967 - Add more methods
- Avoid exceptions in iterator access
- Do not read in rewind8) or next() instead read in iteration if neccessary
- Correctly count line numer on reading
2005-03-07 22:18:40 +00:00
Marcus Boerger
1d54f897ca - Fix problem with some plain c pedantic compilers 2005-03-07 08:04:47 +00:00
Marcus Boerger
3960865e8e - In File::fgetcsv() use max length from object 2005-03-07 01:00:29 +00:00
Marcus Boerger
40bf907541 - Add File object 2005-03-07 00:40:57 +00:00
Marcus Boerger
89f320755d - Use new objects 2005-03-06 23:09:21 +00:00
Marcus Boerger
16f0329a52 - Fix problem with exception in other methods, too 2005-03-06 23:07:43 +00:00
Marcus Boerger
f3970b8076 - Add intefaces from zend_interface.h as macros 2005-03-06 22:57:45 +00:00
Marcus Boerger
0d1e43711a - Fix problem with exceptions in hasChildren calls 2005-03-06 22:57:05 +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
f33adafab7 - Update docu 2005-03-01 23:44:05 +00:00
Marcus Boerger
9001280387 - Fix #32130 (ArrayIterator::seek() does not throw an Exception on invalid index) 2005-03-01 10:06:11 +00:00
Marcus Boerger
76c5d53993 - Need to store class entry 2005-03-01 10:05:12 +00:00
Marcus Boerger
e0c445d9b1 - Update docu 2005-02-23 01:34:14 +00:00
Marcus Boerger
5f1c3f4a7e - Allow to convert traversable into Iterator 2005-02-23 01:03:16 +00:00
Marcus Boerger
80af3ac83d - Add version information 2005-02-17 00:24:57 +00:00
Marcus Boerger
e9b635b6e7 - For now we need the simple way 2005-02-17 00:16:00 +00:00
Marcus Boerger
21705a45bf - Little code reordering 2005-02-13 18:30:26 +00:00
Marcus Boerger
f04134aee0 - Drop unneccessary rinit/rshutown,mshutdown
- Add protos
2005-02-13 18:14:34 +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
2e8b9c005b - Update to 2005 2005-02-08 19:10:06 +00:00
Marcus Boerger
2f9662d156 - Fix year and speling 2005-02-08 19:05:25 +00:00
Marcus Boerger
e5fe40eac9 - Actually these are private 2005-02-08 19:00:19 +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
f18aa85252 - Know whether ew refer to an external array (is_ref) or not 2005-01-27 00:22:06 +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
06dbcb22a1 - Update 2005-01-24 21:13:52 +00:00
Marcus Boerger
36e6841ef5 - Add new test 2005-01-24 20:22:56 +00:00
Marcus Boerger
3c36e73b95 - bugfix 31348 2005-01-24 20:21:11 +00:00
Antony Dovgal
6528b1b0b4 more typos 2004-12-29 16:11:42 +00:00
Antony Dovgal
0460f73db2 MFB: fix typos 2004-12-29 13:53:40 +00:00
Marcus Boerger
08cc69dbf4 - Correct exception throwing 2004-11-11 20:06:23 +00:00
Marcus Boerger
4c8bca469f - Use exceptions now they work 2004-11-11 19:42:11 +00:00
Marcus Boerger
9c0f5e8887 - Use appropriate exception class where possible 2004-11-11 19:36:27 +00:00
Marcus Boerger
5dbb0aaa24 - Drop debug message 2004-11-11 19:31:27 +00:00
Marcus Boerger
a59551d771 - Add new tests 2004-11-10 19:22:26 +00:00
Marcus Boerger
31165806f8 - Simplify construction of RecursiveIteratorIterator 2004-11-08 13:44:34 +00:00
Marcus Boerger
118d5a7d5b - Fix constructors
- This fixes exceptions in spl
2004-11-08 13:42:53 +00:00
Marcus Boerger
4b76d82fe3 - Add new test 2004-11-04 22:07:18 +00:00
Frank M. Kromann
6a15a50d35 oops missed a couple!
Add termination block to function table. This will allow the engine to stop registreting functions at the end.
This fixes the - duplicate name - warning
2004-11-03 01:20:16 +00:00
Frank M. Kromann
93da44811e Add termination block to function table. This will allow the engine to stop registreting functions at the end.
This fixes the - duplicate name - warning
2004-11-03 01:16:10 +00:00
Marcus Boerger
e1dfbfc695 - Don't call beginChildren/endChildren if they don't do anything 2004-11-01 23:16:43 +00:00
Marcus Boerger
533e39ecf7 - Cache function lookup 2004-11-01 23:02:10 +00:00
Marcus Boerger
3b7e24cab2 - Add RecursiveIteratorIterator::beginChildren(), endChildren() 2004-11-01 22:54:12 +00:00
Marcus Boerger
36a9455a48 - Update examples 2004-11-01 22:31:11 +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
4dbf6a530d - Update docu 2004-11-01 18:11:39 +00:00
Marcus Boerger
07ed0872fb - Update docu 2004-11-01 18:01:06 +00:00
Marcus Boerger
bd40510b62 - Two new exceptions
- Make use of new exception classes
2004-11-01 17:39:59 +00:00
Marcus Boerger
623f564abc - Fix macro usage 2004-11-01 17:26:15 +00:00
Marcus Boerger
cae8eeba8d - Update docu 2004-11-01 17:05:45 +00:00
Marcus Boerger
638b0515b3 - Update docu 2004-11-01 16:31:19 +00:00
Marcus Boerger
fe1909b591 - Implement basic exception classes 2004-11-01 15:50:25 +00:00
Marcus Boerger
8e3a8b1e8e - Add interface Countable (PECL #30113) 2004-11-01 10:45:54 +00:00
Marcus Boerger
e0196d11a4 - Do not autoload if require does the trick 2004-11-01 01:29:06 +00:00
Marcus Boerger
846666109b - Update 2004-11-01 00:33:41 +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
b87f16bfbe - Update docu 2004-10-31 19:51:34 +00:00
Marcus Boerger
de3a8ea3e1 - Implement InfiniteIterator in C 2004-10-31 19:49:18 +00:00
Marcus Boerger
081dac3026 - Update docu 2004-10-31 19:05:37 +00:00
Marcus Boerger
a872cb0d8d - Aggregate inner iterator for RecursiveIteratorIterator 2004-10-31 19:05:19 +00:00
Marcus Boerger
90012aa3cc - Implement classes IteratorIterator and NoRewindIterator in C 2004-10-31 18:43:00 +00:00
Marcus Boerger
6166a4a49d - Update 2004-10-31 15:36:08 +00:00
Marcus Boerger
861bad634a - Fix inner iterator aggregation 2004-10-30 19:12:14 +00:00
Marcus Boerger
9dcce367e0 WS (ups) 2004-10-30 14:34:43 +00:00
Marcus Boerger
e2ba10a727 strip trailing (back)slash from path 2004-10-30 14:33:25 +00:00
Marcus Boerger
8bf02ee681 - Fix protos 2004-10-30 10:18:10 +00:00
Marcus Boerger
7c4760d421 - Fix proto 2004-10-30 10:04:37 +00:00
Marcus Boerger
b67ca452c3 - Update docu 2004-10-29 20:58:58 +00:00
Marcus Boerger
208a97a221 - Implement OuterIterator in C 2004-10-29 20:12:57 +00:00
Marcus Boerger
85cae78988 - Abstract no longer valid here 2004-10-29 19:50:51 +00:00
Marcus Boerger
1546a578ec - Make RecursiveFilterIterator work by using reflection
- Add docu
- Add new example
2004-10-08 21:49:39 +00:00
Marcus Boerger
1a7051f913 Add new example 2004-10-08 21:17:53 +00:00
Marcus Boerger
5832635b68 Use OuterIterator to simplify conversion to C code 2004-10-08 21:12:15 +00:00
Marcus Boerger
6349f46e38 - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
Andi Gutmans
11bcaedfc8 - Rename delete_global_variable() to zend_delete_global_variable() 2004-10-04 20:17:06 +00:00
Andi Gutmans
db507dd153 - Commit the variable fetch optimization.
- Extensions which delete global variables need to use new special function
- delete_global_variable() (I'm about to rename it) to remove them.
- Will post to internals@ or via commit messages if there's anything else.
2004-10-04 19:54:35 +00:00
Sebastian Bergmann
b4a5314dc3 Fugbix typo. 2004-10-01 10:35:26 +00:00
Marcus Boerger
9d28fc6643 - CS: Use PHP_* instead of ZEND_* macros 2004-09-30 08:04:29 +00:00
Marcus Boerger
1619178f5e - Speling 2004-09-29 20:27:36 +00:00
Marcus Boerger
e109ab5492 - Fix docu 2004-09-29 20:25:28 +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
42bc4cd0ca Add new examples 2004-09-26 21:21:45 +00:00
Marcus Boerger
b16ae3b73a add new test 2004-09-09 07:46:19 +00:00
Marcus Boerger
ef3e8fa852 - Add link to chm version
- Change wording
2004-09-03 18:46:29 +00:00
Marcus Boerger
d265cdffbf - Fix protoe's 2004-09-03 18:39:30 +00:00
Marcus Boerger
4d3894178d Update docu 2004-09-03 06:16:34 +00:00
Marcus Boerger
1cd7013517 Add new test for seeking 2004-08-31 20:54:31 +00:00
Marcus Boerger
819127b74b Fix seeking 2004-08-31 20:54:00 +00:00
George Schlossnagle
1901b9d90e A little cleanup on the language refinements. 2004-08-29 13:37:10 +00:00
Jan Lehnardt
d402f6fab3 - language refinements 2004-08-29 11:54:38 +00:00
Marcus Boerger
1d1d20ced2 Add more docu 2004-08-29 10:33:24 +00:00
Marcus Boerger
eeb4e150e7 Fix by (mathieu dot bruneau at argontechnologies dot ca) 2004-08-27 20:38:15 +00:00
Marcus Boerger
b1326c1c24 - Fix problem when inner constructor isn't called from derived constructor
(foound by david)
2004-07-28 22:53:10 +00:00
Marcus Boerger
171d01dfcf - Update examples 2004-07-28 22:52:11 +00:00
Wez Furlong
ed682e570a Implement extension load-order deps. 2004-07-18 12:03:51 +00:00
Marcus Boerger
dc66fb1f10 Fixed bug #28822: ArrayObject::offsetExists() works inverted 2004-06-21 19:15:27 +00:00
Marcus Boerger
de8b457181 Fix 2nd issue of bug #28831 2004-06-20 16:46:27 +00:00
Ard Biesheuvel
5232a5afea 64-bit bugsquash party 2004-06-16 23:57:25 +00:00
Zeev Suraski
846c5a252e Fix typo 2004-05-31 08:58:32 +00:00
Zeev Suraski
e11b518c95 Fix prototype 2004-05-30 17:32:32 +00:00
Marcus Boerger
6882000c53 - Make start and length parameter to Limititerator::__construct optional 2004-05-18 20:39:35 +00:00
Marcus Boerger
68c22fba72 - Documentation update
- Checkin doxygen config file
# A patched version of doxygen is needed, hopefully 1.3.8 will contain it
2004-05-10 17:26:03 +00:00
Marcus Boerger
c7b2568269 - Docu updates
- Add missing example file
- Fix aggregation of inner iterators in examples
2004-05-08 12:35:21 +00:00
Marcus Boerger
629a25643c - Update docu 2004-05-08 12:26:28 +00:00
Marcus Boerger
a6feb3f405 - Update examples
- Update documentation
- Move classes/interfaces already implemented in c to new subdir internal
2004-05-08 12:24:15 +00:00
Marcus Boerger
bfc3e689de - Fix bug #28309 2004-05-07 06:13:21 +00:00
Marcus Boerger
7388b6b9ac - Update examples 2004-05-06 22:55:25 +00:00
Marcus Boerger
af7d85db25 - interfaces 'extends' not 'implements' other interfaces 2004-05-06 21:46:40 +00:00
Marcus Boerger
592ee79fc1 - Update documentation 2004-05-06 21:20:50 +00:00
Marcus Boerger
a9070ba130 Add protos 2004-05-06 09:01:31 +00:00
Marcus Boerger
635052875e Count support for ArrayIterator & ArrayObject 2004-05-06 08:57:20 +00:00
Marcus Boerger
c122763bc0 - Look for missing classes in include_path 2004-05-02 22:55:22 +00:00
Marcus Boerger
e72a305091 Update examples 2004-05-02 22:07:32 +00:00
Marcus Boerger
ecf8650a36 Autoload class as long as needed 2004-04-30 19:01:06 +00:00
Marcus Boerger
7f01ec57bf SPL is meant to be in uppercase letters, do it now it works 2004-04-29 23:02:11 +00:00
Marcus Boerger
a9bdb2ed88 - Fix protos and add notes to the docs
- Reorder func prototypes to show what is common and what is specific
2004-04-29 22:52:49 +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
1721e5d44e - More examples 2004-04-28 21:52:51 +00:00
Marcus Boerger
69e792ee7b Count() was missing 2004-04-28 21:45:41 +00:00
Marcus Boerger
1e264fc509 - Add tests for the examples 2004-04-28 20:10:21 +00:00
Marcus Boerger
4cdc3117c7 - DOS 2 UNIX 2004-04-28 19:58:47 +00:00
Marcus Boerger
e44c06c14e - More examples 2004-04-27 18:15:00 +00:00
Marcus Boerger
11690da164 - Some pretection against out-of-memory situations 2004-04-27 17:12:11 +00:00
Marcus Boerger
c56ca79733 Fix test 2004-04-27 15:48:20 +00:00
Marcus Boerger
7a5380297b - Fix ArrayIterator iteration
- Make it seekable
2004-04-27 15:42:45 +00:00
Marcus Boerger
7f37b3f651 Fix LimitIterator by using new handler 2004-04-27 15:41:26 +00:00
Marcus Boerger
c896fa34a8 Fix documentation 2004-04-27 15:39:33 +00:00
Marcus Boerger
b526220462 Complete implementation 2004-04-26 22:01:12 +00:00
Marcus Boerger
5ffeb236f4 Update 2004-04-26 21:34:45 +00:00
Marcus Boerger
e058626c66 Add new iterator example AppendIterator and use it in findfile.php example.
# The initial idea came from a request by Sebastian
2004-04-25 13:06:15 +00:00
Marcus Boerger
9238d1bbbc With the new inheritance rules we need an explicit append method. 2004-04-25 13:04:36 +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
00da44519c Bugfix #27997 2004-04-14 23:26:56 +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
ad2471cbbb Bugfix #27979 2004-04-13 19:06:16 +00:00
Stanislav Malyshev
3c84c9c4bd fix bug #27979 2004-04-13 16:21:24 +00:00
Marcus Boerger
33cdc9ed36 Fix order of macro parameter (synch with other macros) 2004-04-12 13:02:54 +00:00
Marcus Boerger
6e3b81e385 Add new test 2004-04-08 22:47:13 +00:00
Marcus Boerger
42370213f7 Fix toString() issue again 2004-04-08 22:46:43 +00:00
Marcus Boerger
dce131ebcd Add agrument type info 2004-03-28 17:04:11 +00:00
Marcus Boerger
9f4be8d2cd Fix test 2004-03-20 16:13:37 +00:00
Marcus Boerger
af9788eb32 Fix return value to match std array func behavior 2004-03-20 16:09:42 +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
426649067c Make use of zend_make_printable_zval() instead of 'manually' calling
__toString().
2004-03-16 10:17:59 +00:00
Marcus Boerger
cde333aca6 This workaround is no longer needed 2004-03-16 10:16:52 +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
b95d8d14d5 Bugfix #27586 ArrayObject::getIterator crashes with [] assignment 2004-03-13 20:01:00 +00:00
Marcus Boerger
5f5a8172be Update 2004-03-09 17:47:28 +00:00
Marcus Boerger
bf2cf5041c Drop copydoc and add more classes/methods 2004-03-09 17:36:32 +00:00
Marcus Boerger
1b060f3614 Access to inner iterator was missing 2004-03-09 17:35:18 +00:00
Marcus Boerger
56834c958d Update 2004-03-09 17:01:21 +00:00
Marcus Boerger
50ee116f08 Clearify the different method/class flags (as discussed with Andi). 2004-03-09 16:38:37 +00:00
Marcus Boerger
6b0f57ee50 Rename hasMore() to valid() as discussed. (Part II) 2004-03-08 18:05:41 +00:00
Marcus Boerger
b6b7c9eb65 Rename hasMore() to valid() as discussed. (Part I) 2004-03-08 17:33:31 +00:00
Marcus Boerger
8be7457b6c Temp fix for ctor signature until inheritance fix is complete 2004-02-25 20:38:56 +00:00
Ard Biesheuvel
81f05c18f5 Wordsize fixes 2004-02-25 20:16:27 +00:00
Zeev Suraski
bec3adb801 Fix signature
Marcus - please make sure that this is ok.  Generally you are no longer
allowed to override a method and with an incompatible signature
2004-02-25 14:58:47 +00:00
Ard Biesheuvel
29053cc6d5 64-bit fix 2004-02-23 01:53:39 +00:00
Marcus Boerger
1507a4a677 Fix (thx Andi) 2004-02-12 21:43:10 +00:00
Marcus Boerger
ab1e2e7c06 Fix ArrayObject 2004-02-12 20:52:48 +00:00
Zeev Suraski
30171a7590 zend_default_classes.h -> zend_exceptions.h 2004-02-12 10:43:27 +00:00
Marcus Boerger
7258bff325 Cleanup 2004-02-11 23:36:25 +00:00
foobar
1b6b63c3f9 ws 2004-02-09 18:18:00 +00:00
Ilia Alshanetsky
dfde3095e4 Possible fix for bug #27165. 2004-02-06 03:14:06 +00:00
Ilia Alshanetsky
1eb6a18289 Do not initialize & create vars unless they will be used. 2004-02-06 03:07:59 +00:00
Zeev Suraski
d89b7b23f9 API updates 2004-02-04 12:45:47 +00:00
Marcus Boerger
37cf05d1b8 Update 2004-01-29 00:10:33 +00:00
Marcus Boerger
760e43e373 removed experimental status 2004-01-28 23:00:31 +00:00
Marcus Boerger
390ae1a8b8 - Fix second issue with #27042
- Little improvement
- Update test
2004-01-28 22:59:03 +00:00
Marcus Boerger
a43693eaf0 Must use zval* here 2004-01-26 23:59:50 +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
ed650274eb We are in c not c++ 2004-01-26 07:52:52 +00:00
Marcus Boerger
0711fdcede Show supported classes & interfaces in -i and phpinfo() 2004-01-25 17:30:19 +00:00
Marcus Boerger
bec76cab71 Update examples 2004-01-25 13:03:24 +00:00
Marcus Boerger
eff2006e4e Fix this example 2004-01-23 22:33:45 +00:00
Marcus Boerger
4c0b1fddab Builtin recursion protection (by disallow to follow links by default). 2004-01-23 21:33:56 +00:00
Marcus Boerger
bd294582c3 Fix. Found by adam 2004-01-23 21:03:20 +00:00
Marcus Boerger
3b207ccb12 Add cvs tags 2004-01-20 20:59:45 +00:00
Marcus Boerger
fe03687b00 Fix a warning 2004-01-20 20:16:30 +00:00
Marcus Boerger
b0320c6032 Prevent shared builds under windows too 2004-01-20 19:49:21 +00:00
Wez Furlong
8691f86cb8 default to compiled in to match unix. 2004-01-20 17:18:41 +00:00
Frank M. Kromann
25cb3d01d5 Fix compilation of spl as shared object 2004-01-19 23:43:03 +00:00
Christian Stocker
04c2e1e8c4 fix typo 2004-01-19 11:07:19 +00:00
Marcus Boerger
6b8f137905 Must be buitin 2004-01-19 08:48:30 +00:00
Marcus Boerger
10d48448a4 Add spl_sxe to prackage 2004-01-19 08:32:58 +00:00
Derick Rethans
ff86abeab6 - Being picky :) 2004-01-19 08:32:26 +00:00
Sebastian Bergmann
32f7ba2bd6 Add spl_sxe.c. 2004-01-19 08:31:16 +00:00
Marcus Boerger
b0620b27be Rename header to prevent name clashes with external files 2004-01-18 23:35:13 +00:00
Marcus Boerger
43ee98f9fa Not needed 2004-01-18 19:17:50 +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
Tal Peer
a3dc201d1e typos 2004-01-10 23:49:26 +00:00
Marcus Boerger
37d23de6d6 Fix dependancy 2004-01-08 18:23:03 +00:00
Marcus Boerger
0e5b87c5a2 Update copyright 2004-01-08 18:17:39 +00:00
Wez Furlong
8d011cba6d fix API exports 2003-12-23 01:57:26 +00:00
Wez Furlong
95c48c740c don't enable by default; causes simplexml build to fail 2003-12-19 13:02:57 +00:00
Marcus Boerger
9a98ff3ab5 Add standard file info functions to DirectoryIterator 2003-12-13 14:40:56 +00:00
Marcus Boerger
afc15ffde9 Show classname 2003-12-13 14:40:06 +00:00
Marcus Boerger
47012601af Make these inline 2003-12-10 10:21:24 +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
d4a55f1ace Add missing dtor call. 2003-12-09 19:03:38 +00:00
Marcus Boerger
5b7d1623ae - Initialize for refcounting.
- Simplify.
2003-12-09 19:02:34 +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
1c13018702 Use better name for the constant 2003-12-08 08:31:08 +00:00
Marcus Boerger
3aa3f744f1 Update examples to new parameter handling 2003-12-08 08:28:18 +00:00
Marcus Boerger
1765271499 Use a single bit field for the flags here 2003-12-07 15:03:11 +00:00
Marcus Boerger
cca2a74462 Update examples 2003-12-07 13:21:47 +00:00
Marcus Boerger
7046afb542 Implement SeekableIterator and LimitIterator as C code. 2003-12-06 19:21:02 +00:00
Marcus Boerger
8e188f9d03 Update examples 2003-12-06 19:03:17 +00:00
Wez Furlong
62d3cccfc9 make it build under win32 2003-12-06 00:09:55 +00:00
Marcus Boerger
5ae70cc44a Update __toString() issues 2003-12-04 20:56:32 +00:00
Marcus Boerger
dc6f211967 __toString() must be called explicitly now 2003-12-04 20:24:06 +00:00
Marcus Boerger
d79ca1c853 Update 2003-12-04 20:01:46 +00:00
Marcus Boerger
aaa81ea211 Add package file 2003-12-04 19:53:33 +00:00
Marcus Boerger
707681218b No longer true 2003-12-04 19:47:10 +00:00
Marcus Boerger
f679b5c935 Update documentation 2003-12-04 19:39:46 +00:00
Marcus Boerger
2216eb4511 Update 2003-12-04 17:45:36 +00:00
Marcus Boerger
e9f7e14460 Remove debug code 2003-12-02 07:19:31 +00:00
Marcus Boerger
37d7555f98 Add classes from examples: FilterIterator, ParentIterator 2003-12-02 07:18:05 +00:00
Marcus Boerger
a7217431be Move object struct to header. 2003-12-02 07:13:53 +00:00
Marcus Boerger
34a3019acd Fix macros 2003-11-30 17:05:10 +00:00
Marcus Boerger
8ef69cf369 Update 2003-11-30 16:31:35 +00:00
Marcus Boerger
c5fba4c957 Require inner iterator to be RecursiveIterator 2003-11-30 16:20:03 +00:00
Marcus Boerger
01f5277002 Remove old files 2003-11-30 16:14:56 +00:00
Marcus Boerger
bfa36a8ea7 Caanot use REPLACE_ZVAL_VALUE here. 2003-11-29 18:31:24 +00:00
Marcus Boerger
0f2f745393 Cleanup 2003-11-26 23:28:35 +00:00
Marcus Boerger
06cdd3e4cc Remove interfaces implemented in engine now 2003-11-26 08:18:26 +00:00
Marcus Boerger
95c0c36525 Add missing files 2003-11-22 20:52:06 +00:00
Marcus Boerger
3d9ec63384 Update examples 2003-11-22 20:51:15 +00:00
Marcus Boerger
eca139ec52 - rename getLevel() to getDepth()
- make parameter to getSubIterator() optinal
- refcount fix
2003-11-22 20:49:15 +00:00
Marcus Boerger
9ed350cf67 - current() returns self
- add __toString() casting
2003-11-22 20:46:46 +00:00
Marcus Boerger
e3cbda9789 Disable interfaces ArrayRead and ArrayAccess 2003-11-22 20:44:44 +00:00
Marcus Boerger
a16ca5a1c2 Dont't stop if directory can't be openedbecause of user rights etc 2003-11-19 00:18:30 +00:00
Marcus Boerger
e9d0b04588 Must use hasNext() here 2003-11-18 22:34:51 +00:00
Marcus Boerger
43d4079590 update directory examples 2003-11-18 22:18:38 +00:00
Marcus Boerger
dc42ce8cf2 - Rename DirectoryTreeIterator to RecursiveDirectoryiterator (what it
effectively is).
- Add DirectoryIterator::__toString ->getFilename
- Add RecursiveDirecetoryIterator::__toString ->getPathname
- Add RecursiveIteratorIterator::getSubIterator.
2003-11-18 22:14:19 +00:00
Marcus Boerger
5757ae3d24 Rename ArrayClass to ArrayObject 2003-11-17 05:32:43 +00:00
Marcus Boerger
b904d296c9 Fix ArrayClass and provide missing has_dimension handler. 2003-11-17 05:25:47 +00:00
Marcus Boerger
54352a63ad Fix RecursiveIteratorIterator 2003-11-17 00:57:01 +00:00
Marcus Boerger
3bfa497254 WS 2003-11-17 00:56:15 +00:00
Marcus Boerger
883777623a Make it an interface with an code example as comment 2003-11-17 00:55:37 +00:00
Marcus Boerger
e480d10021 Fix this 2003-11-11 18:33:34 +00:00
Marcus Boerger
91ab36096e Add shortcut interface SeekableIterator to LimitIterator 2003-11-11 18:31:50 +00:00
Marcus Boerger
ab05faf5b1 Implement different recursion modes as statemachine and have an optional
parameter to choose the mode in the constructor.
2003-11-11 00:25:26 +00:00
Marcus Boerger
c300480441 Synch exposed functions with c-level iterator functions 2003-11-09 23:00:50 +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
Marcus Boerger
a3d6fb043d Update tests 2003-10-23 07:14:50 +00:00
Marcus Boerger
000e01e5d3 Update 2003-10-23 07:09:04 +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
c0b9d55cfa ZTS fix 2003-09-07 02:37:10 +00:00
Marcus Boerger
0f91d8a4f6 Go with stdlyCaps 2003-09-04 14:44:55 +00:00
Marcus Boerger
b7d325991d Exceptions work now 2003-08-25 20:54:37 +00:00
Marcus Boerger
1cf91a7ac5 Extensions that do opcode hooking must provide the removed functions/macros
themselves now.
2003-08-21 00:10:49 +00:00
Marcus Boerger
c346aad91a spl_call_method returns the zval* if used 2003-08-16 20:27:29 +00:00
Marcus Boerger
0c7c8f4857 Simplify 2003-08-16 10:37:14 +00:00
Marcus Boerger
33cae26946 Upds 2003-08-14 21:44:38 +00:00
Marcus Boerger
175c25c2a8 Add 'graphical' tree mode 2003-08-14 21:14:04 +00:00
Marcus Boerger
74fdac04fe This is a void funtion 2003-08-10 15:05:14 +00:00
Marcus Boerger
142c79d653 Add foreach/continue test 2003-08-10 13:17:02 +00:00
Marcus Boerger
42cf1f8b97 Fix refcounting for $var = $obj[$idx] = $value; 2003-08-09 19:24:11 +00:00
Marcus Boerger
6da189d1e8 Once ago this was used 2003-08-07 22:50:46 +00:00
Marcus Boerger
0040355af8 - Reduce number of c-functions/macros involved in function invocation
- Unify names of remaining c-function/macro names
2003-08-07 22:43:01 +00:00
Marcus Boerger
47a80fee58 Switch to use zend_call_function() what shortens spl code 2003-08-07 22:19:50 +00:00
Marcus Boerger
1716669a27 You shall not Copy'n'Paste after midnight without checking 3 times 2003-08-04 23:21:27 +00:00
Marcus Boerger
2e945483d2 Ups 2003-08-04 23:16:45 +00:00
Marcus Boerger
d23bfc0512 Update documentation in source, reflection and docu itself, part II 2003-08-04 23:15:56 +00:00
Marcus Boerger
28dd8fcff2 Update documentation in source, reflection and docu itself 2003-08-04 23:00:57 +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
c80e7329bd Fix comment 2003-08-04 20:25:41 +00:00
Marcus Boerger
91a882478f Unset support for spl_array 2003-08-04 20:17:53 +00:00
Marcus Boerger
3b4f9d7b58 Latest zend updates 2003-08-03 22:29:20 +00:00
Marcus Boerger
d7b37fa96b Update due to Zeev's latest engine changes 2003-07-24 20:28:15 +00:00
Marcus Boerger
8a2e76d72c Update docu 2003-07-20 12:30:05 +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
173cb1436f Add class spl_array which is an array wrapper 2003-07-19 20:54:22 +00:00
Marcus Boerger
b1f96b77fb Revert stuid patch 2003-07-19 19:04:35 +00:00
Marcus Boerger
9efcbe1e75 Fix clone 2003-07-19 18:53:10 +00:00
Marcus Boerger
59d6d4ab18 Move filter functionality to dedicated function 2003-07-19 09:50:18 +00:00
Marcus Boerger
2432baee40 Add clone support 2003-07-19 09:49:28 +00:00
Marcus Boerger
d8943e513c Update examples 2003-07-16 21:52:03 +00:00
Marcus Boerger
49277b2ac6 More examples 2003-07-16 20:18:33 +00:00
Marcus Boerger
1131d43b0b Update examples 2003-07-16 20:17:34 +00:00
Marcus Boerger
5e1606b882 Add tree example 2003-07-16 18:47:26 +00:00
Marcus Boerger
3a49606d9d Add directory iterator class 2003-07-16 15:13:23 +00:00