Commit Graph

401 Commits

Author SHA1 Message Date
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
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
Jason Greene
ae3101c5f1 Convert C++ comments to C (violates C99, and breaks several compilers) 2003-07-09 02:48:25 +00:00
Marcus Boerger
f31df5693e Currently we're presented all properties with foreach() 2003-07-08 23:25:18 +00:00
Marcus Boerger
79ac007d20 Fix configure options 2003-07-08 23:11:36 +00:00
Marcus Boerger
d9de39ec16 Add some comments 2003-07-08 23:11:14 +00:00
Marcus Boerger
e4f67f3545 Make --disable-spl work 2003-06-30 23:24:12 +00:00
Marcus Boerger
20b8a7dfe4 Put some brief technically description here 2003-06-23 22:37:12 +00:00
Marcus Boerger
f2bce37d04 Add profiling results 2003-06-23 21:59:55 +00:00
Marcus Boerger
51dbd3b39e Adding an array example 2003-06-22 15:48:44 +00:00
Marcus Boerger
f9477577a4 Fix array writing 2003-06-22 14:55:44 +00:00
Marcus Boerger
f4d3111e8a Fix example 2003-06-22 12:57:53 +00:00
Marcus Boerger
76b3007386 More name fixes (more thanks to george) 2003-06-19 18:22:17 +00:00
Marcus Boerger
69b7bb275a Forget to remove these namespace crap (thanks to george to remind me) 2003-06-19 17:38:53 +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
3a75403bac License update 2003-06-12 19:30:54 +00:00
Marcus Boerger
76f68f2a51 WS and removing unecessary things 2003-06-11 20:51:14 +00:00
Marcus Boerger
cdac4401d8 No more namespaces 2003-06-09 16:58:51 +00:00
Marcus Boerger
67befca5e6 Add some 'structure' and make it faster 2003-06-09 16:57:17 +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
80bdb812e1 Fix precondition 2003-05-31 15:22:42 +00:00
Marcus Boerger
7d78168c7b Classes are neither interfaces nor necessarily abstract 2003-05-31 15:20:11 +00:00
Marcus Boerger
5b32cdc5a0 Fix last commit 2003-05-29 23:55:07 +00:00
Marcus Boerger
90640a7774 Optimize 2003-05-29 23:44:22 +00:00
Marcus Boerger
57ceaebe8a Make use of ze2 code 2003-05-29 23:34:23 +00:00
Marcus Boerger
283f52f415 Optimize interface checks 2003-05-29 21:08:08 +00:00
Marcus Boerger
e525904c8e For now that works.
# However some of the register stuff must be moved to the engine.
# And inside the engine some fixes are needed, too.
2003-05-27 00:14:04 +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
13f50103ae Make foreach on spl'ed objects work with break, too 2003-05-25 19:10:44 +00:00
Marcus Boerger
2f0ea97617 Speling 2003-05-25 12:10:48 +00:00
Marcus Boerger
21bbfb503e Optimizations 2003-05-25 01:36:50 +00:00
Marcus Boerger
96034f390b Optimizing by caching class entries, too.
# The comment block inside ZEND_EXECUTE_HOOK_FUNCTION(ZEND_FE_FETCH)
# is a tricky way to create result = array(key => value) very fast.
# But it is close to overoptimizing.
2003-05-24 21:02:33 +00:00
Marcus Boerger
135415ca8f fix error resulting from strlen() -> sizeof() change in engine macros 2003-05-24 15:51:24 +00:00
Marcus Boerger
29a5535394 Fixes and optimizations 2003-05-24 13:47:49 +00:00
Marcus Boerger
4701aaaa87 Interfaces only implement interfaces 2003-05-02 15:39:12 +00:00
Marcus Boerger
d6d17e510d Remove this debug line too 2003-05-02 11:10:55 +00:00
Marcus Boerger
ff82ad268f Add some info 2003-05-02 03:09:58 +00:00
Marcus Boerger
b5a70a72d1 Add spl extension 2003-05-01 23:28:28 +00:00