Commit Graph

689 Commits

Author SHA1 Message Date
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
a6c21ae746 - No need to fetch ce twice 2006-05-20 20:46:11 +00:00
Marcus Boerger
0a0d7b046d - Split up the test in different problem categories 2006-05-20 20:38:28 +00:00
Marcus Boerger
a677ab81f3 - Micro optimization 2006-05-20 19:47:18 +00:00
Marcus Boerger
9b314a8406 - Update test 2006-05-20 19:01:22 +00:00
Marcus Boerger
9e230861ca - No need to keep object alive, iterator api is taking care of that already 2006-05-20 18:48:43 +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
Antony Dovgal
d5c7ea7733 fix #37416 (iterator_to_array() hides exceptions thrown in rewind() method) 2006-05-12 09:42:19 +00:00
Marcus Boerger
7e92bac53e - s/RegExIterator/RegexIterator/ 2006-05-10 21:09:31 +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
Frank M. Kromann
e6e2754439 Remove ZSTR() from stream macros. Calling function must apply this macro 2006-04-28 19:03:58 +00:00
Frank M. Kromann
1791befa0c Fix Win32 build. NULL_ZSTR was converted to ZSTR(NULL_ZSTR) 2006-04-22 10:39:31 +00:00
Antony Dovgal
1262002a95 MF51:
AIX #define's accept as naccept
add a workaround
2006-04-13 13:21:59 +00:00
Antony Dovgal
7cf30db27e MF51: fix memory corruptions and leaks when cloning ArrayObjects and ArrayIterators 2006-04-07 22:53:34 +00:00
Antony Dovgal
48afd4ee03 MF51: fix #36981 (SplFileObject->fgets() ignores max_length) 2006-04-06 19:11:06 +00:00
Marcus Boerger
f2004b6f28 - WS 2006-04-03 19:58:03 +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
Marcus Boerger
b7244fc2c0 - MFB Make readable 2006-03-30 22:03:02 +00:00
Antony Dovgal
6a53a49c8b MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
2006-03-29 15:08:52 +00:00
Dmitry Stogov
daca456e1a Fixed test 2006-03-27 13:53:19 +00:00
Marcus Boerger
31513f9a8b - Make IteratorIterator base class of most SPL iterators 2006-03-26 00:22:45 +00:00
Marcus Boerger
1b6598618b - Fix docu 2006-03-26 00:22:03 +00:00
Marcus Boerger
b2b921a10f - Fix arginfo for (Recursive)RegExIterator 2006-03-23 22:25:46 +00:00
Marcus Boerger
3865420180 - My eyes hurt 2006-03-23 21:26:50 +00:00
Marcus Boerger
12182b1e12 - Make spl_autoload_register() return bool 2006-03-23 19:34:20 +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
Dmitry Stogov
7983262579 Fixed possible memory corruption 2006-03-23 11:42:41 +00:00
Antony Dovgal
c2e7761de4 fix leak, add test 2006-03-22 23:12:38 +00:00
Antony Dovgal
e0cd1b87a8 MFH: fix #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault)
fix similar issue in offsetExists()
remove redundant semicolons
2006-03-22 21:57:10 +00:00
Antony Dovgal
882df6e4d4 initialize retval 2006-03-20 13:53:56 +00:00
Andrei Zmievski
a75b8f5f35 Fix compiler errors by using NULL_ZSTR where zstr is expected.
# I guess we need to use NULL_ZSTR instead of NULL when passing NULL to
# functions that expect zstr parameter.
2006-03-17 22:52:55 +00:00
Marcus Boerger
ff359fab7f - Fix test 2006-03-16 00:40:11 +00:00
Marcus Boerger
eec9a59b27 - Revert left-over 2006-03-09 23:07:48 +00:00
Marcus Boerger
b7f6e116f7 - Add read ahead ability
- Add skipping empty lines
- Add ability to read lines as csv
2006-03-09 23:03:08 +00:00
Sebastian Bergmann
281ebbe664 Make spl_register_std_class() and spl_register_sub_class() available outside of SPL, for instance in SPL_Types. 2006-03-09 11:44:05 +00:00
Marcus Boerger
e8e264dcf2 - Cloning might need special treatment as well 2006-03-08 20:30:12 +00:00
Marcus Boerger
24726c19d5 - Something that uses void* oth might want to deinitialize it in the dtor 2006-03-08 20:06:16 +00:00
Pierre Joye
bb1ec86f9d - remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Marcus Boerger
05ffb7902d - WS 2006-03-07 20:22:12 +00:00
Marcus Boerger
51044eabd4 - Missed 'proto' 2006-03-06 22:22:07 +00:00
Marcus Boerger
1050956ad1 - Proto fixes 2006-03-06 09:47:03 +00:00
Marcus Boerger
04aebae9e4 - Need to change a few things to exception based error handling
- Drop erroneus/useless RecursiveDirectoryIterator::getSubPathInfo()
2006-03-04 22:56:11 +00:00
Marcus Boerger
c7adc4a54e - Make the ctor static and not inline 2006-03-04 17:01:16 +00:00
Marcus Boerger
aae51ab2ed - WS/CS 2006-03-04 16:45:45 +00:00
Marcus Boerger
dbb83bc10e - One skipif section is enough 2006-03-04 16:40:54 +00:00
Marcus Boerger
d350e2949a - Drop dead code 2006-03-04 16:32:59 +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
ce20de5e46 - Fix issue with LimitIterator and bounds checking 2006-03-03 23:34:49 +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
Marcus Boerger
1c0d546bd4 - Fix issues withhandling of derived info classes as entries 2006-02-27 22:31:07 +00:00
Marcus Boerger
5a42b4086b - Extend struct to allow inherited c classes hookk their own info there 2006-02-27 18:15:29 +00:00
Dmitry Stogov
36002f16c3 Fixed test file 2006-02-22 12:22:07 +00:00
Marcus Boerger
54c4478a12 - 2006 now 2006-02-21 23:21:53 +00:00
Marcus Boerger
de27da1c85 - More bodies 2006-02-21 21:22:39 +00:00
Marcus Boerger
0cf591a5f9 - Ensure non abstract methods have code
# This is very usefull once doxygen 1.4.7 comes out with my patch :-)
2006-02-21 21:19:34 +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
Marcus Boerger
53f2048fd1 - Its 2006 already 2006-02-21 09:47:09 +00:00
Marcus Boerger
43e9def563 - Update 2006-02-21 09:45:38 +00:00
Marcus Boerger
b56190d25b - Add some arginfo 2006-02-20 22:23:27 +00:00
Marcus Boerger
45dd9a10b8 - WS 2006-02-20 22:21:24 +00:00
Marcus Boerger
f4fd040d73 - Include examples in documentation
- Provide a better place for the examples
2006-02-20 22:19:04 +00:00
Andi Gutmans
1efe984d08 - Get rid of using ENFORCE_SAFE_MODE. 2006-02-19 04:29:42 +00:00
Dmitry Stogov
09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
Marcus Boerger
887d1202f4 - No more old parameter api usage 2006-02-12 16:43:30 +00:00
Antony Dovgal
50bbedcec3 fix #36359 (splFileObject::fwrite() doesn't write when no data length specified) 2006-02-10 16:56:56 +00:00
Antony Dovgal
96543b01ad initialize variables and reduce the number of warnings 2006-02-06 11:28:20 +00:00
Marcus Boerger
8d0a71a30e - Finally enable optimization 2006-02-06 02:07:08 +00:00
Marcus Boerger
ee37c70736 - WS
- current() doesn't return anything
2006-02-06 01:49:13 +00:00
Marcus Boerger
0d1594692d - Simplify 2006-02-06 01:42:37 +00:00
Marcus Boerger
42cc8c1ba3 - Simplify 2006-02-06 01:30:26 +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
Marcus Boerger
c67d8b2152 - Iterator API was changed 2006-02-05 23:31:47 +00:00
Antony Dovgal
bd8a167442 fix #36295 (typo in SplFileObject::flock() parameter name) 2006-02-05 19:22:13 +00:00
Marcus Boerger
19117cf9c9 - Fix bug #36287 2006-02-05 11:43:28 +00:00
Marcus Boerger
aa55f8731a - Fix ArrayIterator::seek() edge cases 2006-02-02 22:11:49 +00:00
Marcus Boerger
9f628d10f6 - Fix oversight 2006-02-02 19:02:05 +00:00
Ilia Alshanetsky
555cfd0146 MFB51: Only use win32 directory separators on win32 or netware. 2006-02-02 15:10:23 +00:00
Antony Dovgal
c4daf2fffa add test for bug #36258 2006-02-02 13:57:04 +00:00