Commit Graph

1077 Commits

Author SHA1 Message Date
Etienne Kneuss
6f289c582b MFH: Iterator methods overwriting optimisations 2008-07-20 17:32:10 +00:00
Etienne Kneuss
3d0d02f95b MFH: Fix build for solaris 2008-07-20 16:32:55 +00:00
Etienne Kneuss
5495813bb3 MFH: Complete the ZTS build fix 2008-07-19 19:45:55 +00:00
Derick Rethans
5501431626 - MFH: Fixed ZTS build. 2008-07-19 19:24:07 +00:00
Marcus Boerger
0b42dbce38 - MFH Add MultipleIterator (http://blog.somabo.de/2008/01/multipleiterator-for-php.html) 2008-07-19 15:56:59 +00:00
Marcus Boerger
e537b7934d - MFH Added RecursiveTreeIterator 2008-07-19 15:49:21 +00:00
Etienne Kneuss
f4c3f18053 MFH: Fix valgrind errors in array_method, and possibly #45349 (Thanks tony for the patch) 2008-07-19 13:13:57 +00:00
Etienne Kneuss
8dafec40be MFH: Implement DirectoryIterator::seek 2008-07-19 11:20:18 +00:00
Antony Dovgal
cd408f1235 MFH: minor speedup - convert offset to long only when needed 2008-07-14 08:09:09 +00:00
Marcus Boerger
ca64703134 - Use new helper 2008-07-13 21:45:07 +00:00
Marcus Boerger
a694fad739 - MFH Fix test 2008-07-13 21:44:38 +00:00
Antony Dovgal
4f040525ef improve code coverage 2008-07-13 19:47:52 +00:00
Etienne Kneuss
f60da35554 MFH: Implement toArray,fromArray and get_properties (Thanks Tony for the patches) 2008-07-13 15:59:52 +00:00
Marcus Boerger
e4869828a7 - MFH Allow multiple exceptions in spl's autoload 2008-07-12 14:58:41 +00:00
Etienne Kneuss
003841e312 MFH: Move SXI::count to SXE::count and make it user-friendly 2008-07-09 21:27:28 +00:00
Etienne Kneuss
b229f9b7d8 MFH: Test extended iterators methods 2008-07-09 20:35:04 +00:00
Etienne Kneuss
767eaa7a4e MFH: - Fix filename in debug_info
- Fix #45345 (getPathInfo on the file instead of the dir)
- Remove trailing / on input
2008-07-08 22:40:48 +00:00
Etienne Kneuss
91ada2fd0a Remove .htaccess file(??) 2008-07-07 00:05:37 +00:00
Etienne Kneuss
0a2467bd05 MFH: Add missing test 2008-07-06 23:54:36 +00:00
Etienne Kneuss
0eea0a059e MFH: First part of count/handlers related fixes 2008-07-06 23:45:56 +00:00
Felipe Pena
bedd323878 - Added arginfo (functions) 2008-07-03 01:55:48 +00:00
Antony Dovgal
f77382f412 MFH 2008-07-02 12:25:15 +00:00
Antony Dovgal
9d4ede194f MFH: check return value of hash_find() 2008-07-02 10:47:11 +00:00
Pierre Joye
c9ec9fed7b - set PHP_[EXTNAME] to yes for spl, pcre and reflection (always on), this variable is required by ADD_EXTENSION_DEP 2008-06-23 10:22:42 +00:00
Etienne Kneuss
f741f6cd6e MFH: Add some tests to increase code coverage 2008-06-22 16:25:02 +00:00
Etienne Kneuss
0f5ddaf4ce MFH: Rename everything from SplFastArray to SplFixedArray 2008-06-18 14:54:40 +00:00
Etienne Kneuss
4e80cf8bac MFH: Fix #45216 (Add a default size for fgetss) 2008-06-18 10:05:29 +00:00
Etienne Kneuss
04f211e38f MFH: Add tests for iterators when instanciated without argument (by Sebastian Schürmann) 2008-06-15 11:47:34 +00:00
Etienne Kneuss
ee81b5a968 Add tests from testfest 2008-06-12 20:52:34 +00:00
Etienne Kneuss
da68b946a1 Add tests from testfest 2008-06-12 20:46:12 +00:00
Antony Dovgal
da022874c5 MFH 2008-06-12 12:40:13 +00:00
Etienne Kneuss
84ec12d36a add get_debug_info 2008-06-09 17:29:23 +00:00
Antony Dovgal
f1b8d65790 MFH: more checks and tests 2008-06-07 21:36:13 +00:00
Antony Dovgal
c80f146f81 add more tests (Felipe) 2008-06-07 14:10:42 +00:00
Antony Dovgal
5d6b1c6ead MFH 2008-06-07 14:09:06 +00:00
Antony Dovgal
344c076584 add new test 2008-06-07 12:49:35 +00:00
Antony Dovgal
83d26fc47d MFH: disallow $a[] = value syntax 2008-06-07 12:47:04 +00:00
Antony Dovgal
b8bd4cbbc6 MFH 2008-06-07 08:05:55 +00:00
Etienne Kneuss
e909912389 MFH: Fix segfault caused by get_current_data on an uninitialized element 2008-06-07 01:46:44 +00:00
Etienne Kneuss
b5eaa1005a MFH: Implements C arrays wrapper 2008-06-06 23:53:43 +00:00
Etienne Kneuss
0cfdd9a7e0 MFH: Add a prepend param to spl_autoload_register 2008-05-25 12:22:38 +00:00
Etienne Kneuss
2882dde048 remove the skipif 2008-05-25 12:13:41 +00:00
Sebastian Bergmann
bad8951dbc MFH: Drop SKIPIF check for ext/spl. 2008-05-25 06:05:57 +00:00
Etienne Kneuss
3623b134e1 New tests from testfest 2008-05-24 16:49:04 +00:00
Etienne Kneuss
d4aa83d273 MFH: Also register the get_iterator handler for Max/Min Heap 2008-05-24 14:38:04 +00:00
Sebastian Bergmann
0abd5bde20 MFH: Drop SKIPIF check for ext/spl. 2008-05-24 14:17:55 +00:00
Sebastian Bergmann
3a4eb3e4a6 Drop SKIPIF check for ext/spl. 2008-05-24 14:10:44 +00:00
Etienne Kneuss
5f360ab9bf Add tests from testfest 2008-05-24 13:25:24 +00:00
Etienne Kneuss
3681756cfb MFH: Fix path lookup when include_path is used 2008-05-20 21:46:51 +00:00
Etienne Kneuss
242f779fa1 MFH: Fix filesystemiterator with ./.. + add cloning tests 2008-05-18 12:17:43 +00:00
Etienne Kneuss
03463d557b Sync spl tests with HEAD 2008-05-08 12:02:17 +00:00
Etienne Kneuss
06cef68307 Add consistency with the flag 2008-05-06 23:08:06 +00:00
Elizabeth Marie Smith
3adf07b5c6 Fix reflection (always static, never shared) and disable turning off pcre and spl (also always static, never shared) 2008-05-02 14:05:53 +00:00
Dmitry Stogov
3a86a06619 Added missing lazy initialization 2008-04-29 09:18:26 +00:00
Marcus Boerger
26f7d6e48b - MFH SPL can no longer be disabld as discussed some time ago (checked back with RM) 2008-04-09 21:53:00 +00:00
Etienne Kneuss
54b70b6015 MFH: Fix #44511 (Ensure no exception was already thrown by php_stream_opendir) 2008-04-09 19:01:12 +00:00
Marcus Boerger
af316021e8 - Rewrite scanner to be based on re2c instead of flex
The full patch is available as:
  http://php.net/~helly/php-re2c-5.3-20080316.diff.txt
  This is against php-re2c repository version 98
  An older patch against version 97 is available under:
  http://php.net/~helly/php-re2c-97-20080316.diff.txt
2008-03-16 21:06:55 +00:00
Marcus Boerger
c17997d4b6 - MFH Fix possible memory corruption 2008-03-13 19:46:44 +00:00
Etienne Kneuss
b57e7b44da Fix bug #41828 (Fix crash on wrong instantiation) 2008-03-12 13:34:47 +00:00
Etienne Kneuss
05ba20f9b6 MFH: Fix #44144 (object methods as spl autoload functions returned correctly) 2008-02-29 13:55:23 +00:00
Etienne Kneuss
7c2052957c MFH: Fix #44288 (Move declarations) 2008-02-29 09:26:01 +00:00
Etienne Kneuss
6e46f25b12 MFH: Fix folding 2008-02-25 23:41:04 +00:00
Etienne Kneuss
c54045a1f9 MFH: SplHeap, SplMinHeap, SplMaxHeap, SplPriorityQueue implementation 2008-02-25 23:39:08 +00:00
Etienne Kneuss
09a928b9c4 MFH: Add debug_info handler to SplDoublyLinkedList/Stack/Queue to make them var_dump friendly 2008-02-19 00:04:20 +00:00
Marcus Boerger
1d98b27235 - MFH Make this behave like in <= 5.2.5 and test for it 2008-02-13 12:05:34 +00:00
Etienne Kneuss
80861c001e MFH: Provide ctod/dtor with TSRM 2008-02-11 16:39:20 +00:00
Etienne Kneuss
901cb5a454 MFH: cosmetics 2008-02-11 13:59:23 +00:00
Marcus Boerger
95262f8ac3 - MFH Really last flag change (got confused with code) 2008-02-04 21:37:47 +00:00
Marcus Boerger
dc8bfcaade - MFH Update docu 2008-02-04 20:40:47 +00:00
Marcus Boerger
8f6a6a800e - MFH Fix/add folding markers 2008-02-04 19:40:49 +00:00
Marcus Boerger
81a5389af7 - MFH Really fix flag handling 2008-02-04 19:33:10 +00:00
Marcus Boerger
b7a04d786f - MFH Fix #44018 (RecursiveDirectoryIterator options inconsistancy) 2008-02-04 18:46:13 +00:00
Marcus Boerger
a547c556b6 - MFH Fix default flag value in contructor 2008-02-04 17:19:07 +00:00
Marcus Boerger
36caad5628 - MFH Fix messages and tests 2008-02-04 17:07:07 +00:00
Marcus Boerger
fdf95a00dc - CS/WS 2008-02-04 16:48:06 +00:00
Marcus Boerger
b628fc219a - MFH Synch directory changes
[DOC]
# Class FilesystemIterator was introduced to have a better DirectoryIterator
# without having to change DirectoryIterator or RecursiveDirectoryIterator.
# On top of FilterIterator the new GlobIterator was introduced. This one allows
# to implement Countable(). But a glob stream flattens all structure, so it
# cannot be derived from RedursiveIterator. With the new structure all children
# of FilesystemIterator have nearly the same behavior. Just their capabilities
# are a bit different. Check out new inheritance tree on SplFileInfo:
#
# [marcus@frodo PHP_5_3]$ php ext/spl/examples/class_tree.php SplFileInfo
# make: `sapi/cli/php' is up to date.
# SplFileInfo
# |-DirectoryIterator (Iterator)
# | \-FilesystemIterator
# |   |-GlobIterator (Countable)
# |   \-RecursiveDirectoryIterator (RecursiveIterator)
# |     \-Phar (ArrayAccess, Countable)
# |-PharFileInfo
# \-SplFileObject (RecursiveIterator, SeekableIterator)
#   \-SplTempFileObject
2008-02-02 23:09:38 +00:00
Marcus Boerger
cd2953db57 - MFH Show interfaces 2008-02-02 21:02:25 +00:00
Felipe Pena
ad476edcee Fix the fix 2008-02-02 04:03:03 +00:00
Felipe Pena
1e294b1d37 Fix tests (new error message) 2008-02-02 03:20:51 +00:00
Marcus Boerger
7cced8f520 - Fix build, thanks Christian Rodriguez for noticing
# I wonder why the other machine didn't catch this
2008-02-01 23:46:36 +00:00
Marcus Boerger
55b17871a4 - MFH Fix test 2008-01-31 07:44:01 +00:00
Elizabeth Marie Smith
78a9df9004 Fix windows build 2008-01-31 02:35:44 +00:00
Marcus Boerger
116539a5d1 - WS 2008-01-30 23:45:12 +00:00
Marcus Boerger
ef9453546e - Sub path may be NULL 2008-01-30 23:08:13 +00:00
Marcus Boerger
0b71904acc - Fixed glob:// stream handling in (Recursive)DirectoryIterator. 2008-01-30 20:31:07 +00:00
Dmitry Stogov
240fa244c3 Improved PHP binary size and startup speed with GCC4 visibility control (Nuno) 2008-01-30 09:41:12 +00:00
Marcus Boerger
e9914e9d06 - MFH Make SplObjectStorage implement ArrayAccess
[DOC]
2008-01-28 22:48:15 +00:00
Marcus Boerger
a339867860 MFH:
[DOC] Add ability to store associative infor with objects in SplObjectStorage
- Add second parameter to SplObjectStorage::attach()
- Add SplObjectStorage::setInfo()
- Add SplObjectStorage::getInfo()
2008-01-27 18:07:20 +00:00
Marcus Boerger
5081a15490 - Minor rearrange and fix potential issue with double adding 2008-01-27 15:23:14 +00:00
Marcus Boerger
6b778b0def - MFH revert over constfying 2008-01-27 15:04:41 +00:00
Etienne Kneuss
bfe7a47b15 MFH: Typo 2008-01-27 14:08:06 +00:00
Etienne Kneuss
36305912e9 MFH: -Pointer doesn't move if we're moving forward and shifting at the same time
-Userland implementation
-Doxygen doc
2008-01-27 13:59:51 +00:00
Etienne Kneuss
6a7074c837 MFH: Iterator implementation in SplDoublyLinkedList, SplStack, SplQueue 2008-01-26 23:04:43 +00:00
Nuno Lopes
65e86e459a more const kewywording
remove spl_functions_none var (wast used anywhere
2008-01-25 20:29:48 +00:00
Etienne Kneuss
de2bb0f497 MFH: Typos (Dan Scott)
ctor inside the structure. dtor/ctor used on push/pop for better potential interoperability
2008-01-22 19:55:31 +00:00
Etienne Kneuss
7366d48c04 MFH: Add doxygen docs for SplDoublyLinkedList, SplStack, SplQueue 2008-01-21 21:55:55 +00:00
Etienne Kneuss
5c5d5dd0f6 MFH: Fix mem errors 2008-01-20 13:26:03 +00:00
Rob Richards
05534af71b MFH: fix win build 2008-01-15 15:46:20 +00:00
Etienne Kneuss
67e82261c2 Fix ZTS build, fix tests 2008-01-15 12:17:35 +00:00
Etienne Kneuss
8e2154f711 MFH: Bump year 2008-01-15 09:44:07 +00:00
Etienne Kneuss
1b4cac77ba MFH: Implement splDoublyLinkedList, splQueue, splStack classes in SPL 2008-01-15 09:38:15 +00:00
Marcus Boerger
522166bad1 - MFH Fix bug in example code found by Surf Chen 2008-01-10 10:11:33 +00:00
Ilia Alshanetsky
fc74136a90 Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";") 2008-01-02 19:19:31 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Ilia Alshanetsky
31fb02db2e Kill unused vars 2007-12-17 19:00:07 +00:00
Marcus Boerger
aabb1c3097 - Fix folding 2007-12-17 13:46:27 +00:00
Johannes Schlüter
57189ca513 - MFH: Fix #43611 SplObjectStorage is available since 5.1.2 2007-12-16 22:19:49 +00:00
Hannes Magnusson
bfad3071cd Fix typo 2007-12-16 18:31:07 +00:00
David Coallier
7c1087f0aa - Nitpicking, using same code (without unicode handling) than in HEAD
just removed useless } else {
2007-12-12 03:29:31 +00:00
David Coallier
2196a52edd - Unit test for bug #41528
- Checking that when you serialize a class that extends to ArrayObject
  Is keeping it's properties.
2007-12-12 00:34:06 +00:00
Rob Richards
d4cbb77c90 fix win build 2007-12-07 13:33:10 +00:00
Marcus Boerger
cd77dc1242 - Fix for #41528 (Classes extending ArrayObject do not serialize correctly) 2007-12-06 16:04:17 +00:00
Marcus Boerger
d71b3de7f4 - Fixing #38618 by:
- [DOC] ArrayIterator::CHILD_ARRAYS_ONLY, ArrayObject::CHILD_ARRAYS_ONLY
  Passing this flag in the ctor prevents ArrayIterator from following
  objects in ArrayObject::getIterator(), ArrayIterator::hasChildren(),
  ArrayIterator::getChildren().
  The exact behavior might change:
    - should the flag be set by default
    - should the flag be changed to have a negative effect
2007-12-05 15:56:41 +00:00
Jani Taskinen
dcd3b197e7 MFH:- Fixed bug #43365 (Several enums have trailing commas) 2007-11-26 10:59:04 +00:00
Dmitry Stogov
648fbe9d58 Fixed bug #43128 (Very long class name causes segfault) 2007-11-22 13:27:13 +00:00
Dmitry Stogov
c3ab6bd091 Fixed bug #43136 (possible crash on script execution timeout. The EG(function_state_ptr) is completely removed, EG(current_execute_data)->function_state must be used instead) 2007-11-20 09:51:12 +00:00
Jani Taskinen
56ef7a5ea3 - Fix tests 2007-11-14 14:05:42 +00:00
Jani Taskinen
a541bb8078 - Fix tests
- Update README.PARAMETER_PARSING_API
2007-11-02 19:41:12 +00:00
Jani Taskinen
b489251177 - MFH from HEAD:
. Folding tags
  . Parameter parsing
  . SPL debug info
  . array function improvements (not all yet)
  . Improvements to function calling with call_user_* functions
  . Improvements to debugging info in var_dump/print_r
# I propably forgot already something but this all was pretty close tied
# to each other so it wasn't possible to do it in parts.
2007-11-02 19:40:39 +00:00
Marcus Boerger
80893e5727 - Fix #42703 2007-10-18 04:41:39 +00:00
Marcus Boerger
56f9d57091 - Fix #42654 (maybe also a bunch of others) 2007-10-18 03:55:43 +00:00
Yiduo (David) Wang
4b4d634cb9 MFH: Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:22:07 +00:00
David Soria Parra
fd841a44db WS fix. Space instead of tab. 2007-10-05 11:43:09 +00:00
David Soria Parra
7db53fe049 WS/Indent fix 2007-10-05 09:37:17 +00:00
David Soria Parra
d4e8fa62c6 MFH: Add an escape parameter to fgetcsv to satisfy rfc4180 and bug #40501.
[DOC] 5th parameter available since PHP 5.3+
2007-10-03 10:44:32 +00:00
Dmitry Stogov
6c810b0d4c Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:00:48 +00:00
Ilia Alshanetsky
ddc1871576 Improve check for filename (fixed coverity issue #355) 2007-09-22 15:55:35 +00:00
Jani Taskinen
30dc58671d MFH 2007-09-20 14:28:12 +00:00
Johannes Schlüter
254992907c - MFH: Fix Bug #42364 Crash when using getRealPath with DirectoryIterator 2007-08-21 22:45:53 +00:00
Rob Richards
07bf252ef5 MFH: fix bug #42259 (SimpleXMLIterator loses ancestry)
add test
2007-08-14 12:10:46 +00:00
Antony Dovgal
bfed3520c9 MFH: fix #41691 (ArrayObject::exchangeArray hangs Apache) 2007-07-20 10:53:56 +00:00
Antony Dovgal
f132df4f66 MFH: fix #41692 (ArrayObject shows weird behaviour in respect to inheritance) 2007-06-27 12:30:28 +00:00
Antony Dovgal
cf53dfaff3 MFH 2007-06-05 12:02:46 +00:00
Ilia Alshanetsky
a3899eda3e Fixed typo in constant name 2007-05-19 18:40:27 +00:00
Ilia Alshanetsky
c554031b24 Eliminate memory allocation in RINIT for spl 2007-05-19 18:32:35 +00:00
Marcus Boerger
93583f9680 - MFH Add invert option to RegexIterator 2007-05-11 00:15:25 +00:00
Antony Dovgal
1f65545121 fix test names 2007-05-07 18:03:01 +00:00
Johannes Schlüter
e181e3ac7b - MFH Fix "f" modifier for zend_parse_parameters_ex in case of a __call call
# only affects iterator_apply() in 5_2 branch
2007-04-30 19:54:41 +00:00
Marcus Boerger
e910699347 - MFH Update docu 2007-04-22 17:13:52 +00:00
Antony Dovgal
bb489851e9 win32 test fixes 2007-04-18 08:06:29 +00:00
Marcus Boerger
170af7e861 - MFH Fix #41109: recursiveiterator.inc says 'implements' Iterator instead of 'extends' 2007-04-17 06:33:50 +00:00
Dmitry Stogov
4de76f02ea Fixed 64-bit support 2007-04-09 15:38:58 +00:00
Marcus Boerger
515f4f6e6f - Fix 40442 2007-04-06 17:57:10 +00:00
Marcus Boerger
0ec117146e - Add bug name 2007-04-06 17:54:22 +00:00
Marcus Boerger
b08cfa8833 - Better fix for #40091 2007-04-06 16:00:08 +00:00
Marcus Boerger
63d8f70206 - Fix #40442 2007-04-06 15:32:30 +00:00
Marcus Boerger
eceb7faee0 - MFH Drop double variable declaration 2007-03-24 16:28:53 +00:00
Marcus Boerger
4c1c431a38 - MFH Fix Bug #40872 (inconsistency in offsetSet, offsetExists treatment
of string enclosed integers)
2007-03-20 20:28:08 +00:00
Marcus Boerger
fa29c1a2f5 - Fix copy'n'paste issues 2007-03-04 14:01:06 +00:00
Marcus Boerger
ed359b4529 - MFH simplify, synch docu/implementation 2007-03-04 12:18:02 +00:00
Marcus Boerger
e5397c076b - MFH [DOC] Add SplFileInfo::getBasename(), DirectoryIterator::getBasename
- MFH Add SplFileInfo::getLinkTarget(), SplFileInfo::getRealPath()
# All based on suggestions by Arnold Daniels
2007-03-03 15:08:59 +00:00
Ilia Alshanetsky
efad70c2cc snprintf() -> slprintf() 2007-02-27 03:28:17 +00:00
Marcus Boerger
f44b63c57f - Make stat based functions throw an exception 2007-02-20 13:08:01 +00:00
Marcus Boerger
ba4cbbaf69 - Bugfix #40546: SplFileInfo::getPathInfo() throws an execption if directory is in root dir. 2007-02-19 20:34:29 +00:00
Marcus Boerger
58c77d3925 - MFH CachingIterator implements Countable 2007-02-19 16:18:24 +00:00
Marcus Boerger
e19f55bb82 - MFH Drop useless stuff 2007-02-13 00:32:32 +00:00
Marcus Boerger
5026a9fd83 - MFH Add new example 2007-02-13 00:19:00 +00:00
Marcus Boerger
7aa2282124 - MFH Add include 2007-02-08 22:54:34 +00:00
Marcus Boerger
ac3b5ebbde - MFH Rearrange code: mode Countable from spl_array.c to spl_iterator.c 2007-02-08 22:17:40 +00:00
Marcus Boerger
1d1ea0b2ca - MFH: Fix Bug #39836 SplObjectStorage empty after unserialize 2007-02-08 22:14:25 +00:00
Antony Dovgal
78e610b4f9 fix classname 2007-01-22 08:36:21 +00:00
Marcus Boerger
d2c8a3bb63 - Add tests 2007-01-21 12:30:19 +00:00
Ilia Alshanetsky
b5228f0c6c Fixed bug #40091 (spl_autoload_register with 2 instances of the same class). 2007-01-10 18:14:37 +00:00
Dmitry Stogov
7c750656f1 Fixed tests 2007-01-10 16:00:31 +00:00
Ilia Alshanetsky
13f006ac69 Fixed bug #38325 (spl_autoload_register() gaves wrong line for "class
not found").
2007-01-08 04:27:29 +00:00
Ilia Alshanetsky
c5fb061cbf Provide means for opening file for zend with error supression. Allows us to
avoid INI hackery such as the one used in SPL.
2007-01-08 03:39:09 +00:00
Ilia Alshanetsky
5068511748 Fixed bug #40036 (empty() does not work correctly with ArrayObject when
using ARRAY_AS_PROPS).
2007-01-07 03:52:44 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Marcus Boerger
b8003b8461 - MFH Bugfix: #39996 Wrong PHPDoc comment for SplFileInfo::getType() 2006-12-31 18:20:22 +00:00
Ilia Alshanetsky
52d53543ac Allocation safety checks 2006-12-25 22:36:57 +00:00
Marcus Boerger
66525a739e - MFH Fix comparison of RecursiveDualIterators 2006-12-10 23:44:49 +00:00
Dmitry Stogov
108a2fc64c Fixed bug #39775 ("Indirect modification ..." message is not shown)
The fix breaks two SimpleXML tests those must be fixed
2006-12-08 15:55:31 +00:00
Antony Dovgal
44a3cad930 MFH: partly fix #39724
ext/spl has a soft dependcy from ext/pcre (not ext/pcre-regex)
2006-12-04 18:01:53 +00:00
Marcus Boerger
5ea32dc1e4 - MFH: Fix handling of recursive inner iterators 2006-12-01 09:29:15 +00:00
Marcus Boerger
ecd417c6ce - MFH: Add new example 2006-11-28 22:20:01 +00:00
Marcus Boerger
d4dc662621 - MFH: Fix arginfo 2006-11-20 20:04:03 +00:00
Marcus Boerger
164929d557 - MFH: Add new test 2006-11-20 19:58:01 +00:00
Hannes Magnusson
a27d73b13d Add missing header installation.. 2006-11-12 19:00:33 +00:00
Hannes Magnusson
3bf35bbc15 MFH: SplFileObject no longer overwrites SplFileInfo::getFilename() 2006-11-12 17:35:09 +00:00
Hannes Magnusson
1182b325c2 MFH: SplFileObject::getFilename() no longer overwrites SplFileInfo::getFilename()
(SplFileObject::getFilename() therefor only returns the filename now)
2006-11-12 17:16:13 +00:00
Marcus Boerger
d3bda9a516 - MFH: Correct comments 2006-11-12 15:58:17 +00:00
Johannes Schlüter
c65a1f10cb - MFH: No C++ comments (fix #39414) 2006-11-07 15:19:11 +00:00
Hannes Magnusson
69dbaaacac MFH: arginfo fixes 2006-11-06 23:20:11 +00:00
Hannes Magnusson
c32408e694 MFH: fix segfault & improve test 2006-11-06 15:21:45 +00:00
Marcus Boerger
15592390c5 - MFH Store length of autoload file exts 2006-11-04 20:27:28 +00:00
Marcus Boerger
76ba475d76 - MFH: Synch 2006-11-03 18:58:41 +00:00
Hannes Magnusson
5006fb2ceb MFH: Fix double "wrong param count" messages 2006-11-03 15:13:17 +00:00
Hannes Magnusson
bece30aee5 MFH: fix crash on invalid regex 2006-11-03 14:11:23 +00:00
Sara Golemon
3042386549 MFH(r-1.114) Can't use real arrays held by ArrayObjects in write context 2006-10-20 02:11:19 +00:00
Hannes Magnusson
281536e866 fix protos 2006-09-29 13:11:28 +00:00
Hannes Magnusson
30b18b7bb7 fix arginfo 2006-09-29 12:29:21 +00:00
Antony Dovgal
7df7d2b4df MFH 2006-09-29 12:18:58 +00:00
Antony Dovgal
478d42a3ac MFH 2006-09-28 22:33:06 +00:00
Antony Dovgal
6a70b05660 MFH: build ext/spl and ext/reflection as static (fixes #38556) 2006-08-23 09:47:21 +00:00
Hannes Magnusson
de3393e63f Fix arginfo for SplObjectStorage 2006-08-23 09:32:24 +00:00
Marcus Boerger
7d0b17fc67 - MFH Add link 2006-08-13 10:37:57 +00:00
Nuno Lopes
c45c9748dc fix #38402: wrong proto for Array*::offsetGet() 2006-08-11 17:05:23 +00:00
Antony Dovgal
4b77e7f2f7 nuke unused variable 2006-08-07 09:49:53 +00:00
Marcus Boerger
444f1f2da3 - MFH Fix cvs access through SplFileObject 2006-08-06 13:47:51 +00:00
Ilia Alshanetsky
499ca00476 Fixed bug #38303 (spl_autoload_register() supress all errors silently). 2006-08-03 14:49:11 +00:00
Marcus Boerger
195417eb4d - MFH Update tests 2006-07-24 23:41:09 +00:00
Marcus Boerger
a6f8252f9b - MFH Update docu 2006-07-21 21:55:43 +00:00
Marcus Boerger
6a738f6b5b - MFH Match code with docu 2006-07-21 21:26:11 +00:00
Marcus Boerger
85963e6300 - MFH Update RegexIterator, Docu & Tests 2006-07-21 20:14:31 +00:00
Marcus Boerger
45d09c71ba - Synch RegexIterator with HEAD 2006-07-20 22:54:21 +00:00
Ilia Alshanetsky
480104a456 Fixed memory leak 2006-07-18 22:42:28 +00:00
Marcus Boerger
34cfec2536 - MFH Fix #38125 undefined reference to spl_dual_it_free_storage 2006-07-17 21:11:33 +00:00
Marcus Boerger
109c89c848 - MFH Typo 2006-07-16 23:48:34 +00:00
Marcus Boerger
f2623f0b50 - MFH Update docu 2006-07-16 23:46:12 +00:00
Marcus Boerger
55f0596fab - MFH:
. Upgrade RegexIterator capabilities, see docu
  . Update docu
  . Add test (which fails right now: iterator_049.phpt)
  . Add tests for new functionality
2006-07-16 21:12:32 +00:00
Marcus Boerger
bd760162e6 - MFH Correct test name 2006-07-16 17:34:37 +00:00
Marcus Boerger
9c30e20bd6 - MFH Implement todo: SplFileObject: ability to set the CSV separator per object 2006-07-15 15:08:41 +00:00
Marcus Boerger
bb3c702162 - MFH Fix issue with SplFileObject and directories 2006-07-15 13:01:59 +00:00
Antony Dovgal
3aaf62d159 there is no Unicode in 5_2 2006-07-11 12:15:11 +00:00
Dmitry Stogov
fbd3ef09ed Fixed memory leaks in ext/spl/tests/fileobject_003.phpt 2006-07-10 15:47:58 +00:00
Marcus Boerger
d26b539c61 - MFH DualIterator 2006-07-09 10:24:32 +00:00
Marcus Boerger
5fee10735f - MFH Add spl_object_hash() 2006-07-09 10:22:27 +00:00
Marcus Boerger
0fd2b96204 - MFH Add test 2006-07-08 12:25:57 +00:00
Hannes Magnusson
aaa1d62614 MFH: fix/add SKIPIF 2006-06-27 00:09:43 +00:00
Dmitry Stogov
1dbaae2795 Added automatic module globals management 2006-06-15 18:33:09 +00:00
Marcus Boerger
e0844e09bd - MFH iterator_apply() 2006-06-07 09:44:42 +00:00
Antony Dovgal
928c20942b plug a leak in ext/spl/tests/iterator_047.phpt 2006-06-06 20:11:35 +00:00
Marcus Boerger
ac2a29913c - Add missing classes 2006-06-04 10:47:22 +00:00
Marcus Boerger
37f5474ce9 - MFH Use engine call to register interfaces (steph) 2006-06-04 10:34:22 +00:00
Sara Golemon
79b21ec4cf MFH: Minor fixes (bjori) 2006-05-30 19:06:22 +00:00
Antony Dovgal
755caecfc9 fix test 2006-05-24 23:04:58 +00:00
Marcus Boerger
e3f89f116a - MFH
. 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 18:13:37 +00:00
Marcus Boerger
96916c95e8 - MFH Sync with head fixes part of an issue with iterator_(to_array|count) 2006-05-20 21:01:42 +00:00
Marcus Boerger
55041d6f3d - MFH Add new test 2006-05-18 22:52:04 +00:00
Marcus Boerger
69079a7537 - MFH Add new test 2006-05-18 22:42:05 +00:00
Marcus Boerger
5e5327a7e0 - MFH Add new test 2006-05-18 21:59:05 +00:00
Marcus Boerger
e33afedd96 - You shall not use %v in 5.*
# Even though it is there it is only meant for pecl dev to ease their pain
2006-05-18 21:48:33 +00:00
Marcus Boerger
7d79686f45 - MFH Fixed CachingIterator issues with string conversion/__toString()
Partly by adding new mode TOSTRING_USE_INNER
2006-05-18 21:42:58 +00:00
Marcus Boerger
26a67b8925 - MFH Fixed Bug #37457 (Crash when an exception is thrown in accept() method of FilterIterator) 2006-05-16 08:21:08 +00:00
Antony Dovgal
046b34955c MFH: fix #37416 (iterator_to_array() hides exceptions thrown in rewind() method) 2006-05-12 09:42:56 +00:00
Marcus Boerger
05273a73d8 - Fix test 2006-05-11 21:01:04 +00:00
Antony Dovgal
8ee1c45a3b fix test 2006-05-11 15:43:28 +00:00
Marcus Boerger
ac3c882bb6 - Use of E_RECOVERABLE_ERROR 2006-05-11 08:06:22 +00:00
Andrei Zmievski
9e0e89c5cf Rename RegExIterator -> RegexIterator.
Also rename recursive one.
2006-05-10 16:50:57 +00:00
Marcus Boerger
3a3e310e2e - MFH: SplFileObject improvements
. FILE_OBJECT_READ_AHEAD: allow to read ahead
  . FILE_OBJECT_SKIP_EMPTY: allow to skip empty lines (includes read ahead)
  . FILE_OBJECT_READ_CSV:   allow to read as csv
2006-05-10 00:31:04 +00:00
Marcus Boerger
982822be93 - Fix iterators part and add tests 2006-05-10 00:29:42 +00:00
Marcus Boerger
9afb3e041b - Update after api changes
- MFH
  . ArrayIterator/ArrayObject: function lookup caches and array functions
  . Added RegExIterator, RecursiveRegExIterator
  . Added (full) caching support for CachingIterator
2006-05-10 00:03:38 +00:00
Antony Dovgal
af429910ef AIX #define's accept as naccept
add a workaround
2006-04-13 13:21:43 +00:00
Antony Dovgal
e8270edf9d fix memory corruptions and leaks when cloning ArrayObjects and ArrayIterators 2006-04-07 22:53:23 +00:00
Antony Dovgal
ad7768ee63 fix #36981 (SplFileObject->fgets() ignores max_length) 2006-04-06 19:01:56 +00:00
Marcus Boerger
c58e1fa5be - MFH
. Fixed bug #36941 (ArrayIterator does not clone itself)
  . Fixed SEGV when ArrayObject/Iterator use reference to self
  . Added tests
2006-04-04 19:53:21 +00:00
Antony Dovgal
9a59df13cc fix segfault when assigning value by ref and add test
(I consider it's wrong that we can't do it, but we shouldn't segfault anyway)
2006-04-01 19:13:04 +00:00
Marcus Boerger
ea9487249b - Make readable 2006-03-30 21:57:28 +00:00
Antony Dovgal
59b8592c8c 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)

to initialize and destroy zend_object structs
2006-03-29 14:28:43 +00:00
Marcus Boerger
a824bcf41d - MFH: Make IteratorIterator base of most SPL iterators 2006-03-26 02:25:03 +00:00
Marcus Boerger
7b70ca475f - Fix docu 2006-03-26 02:24:33 +00:00
Marcus Boerger
ed43fd9b3b - My eyes don't hurt anymore 2006-03-23 21:28:06 +00:00
Marcus Boerger
fe1c2cfc0f - MFH
. spl_autoload_register() return bool to denote success/failure
  . spl_autoload_unregister() acept any callable
2006-03-23 19:55:16 +00:00
Antony Dovgal
5f80bcaf26 add missing skipif sections 2006-03-23 15:03:27 +00:00
Antony Dovgal
e40df39518 fix typos 2006-03-23 14:56:12 +00:00
Marcus Boerger
1440bb5c7b - MFH Add new test 2006-03-23 12:21:40 +00:00
Marcus Boerger
4b4d61952f - MFH: Add new test 2006-03-23 11:57:34 +00:00
Marcus Boerger
660956b514 - Add missing bug title and synch with other tests 2006-03-23 11:48:59 +00:00
Dmitry Stogov
87ae2460d1 Fixed possible memory corruption 2006-03-23 11:42:32 +00:00
Antony Dovgal
1ce8546cd1 fix leak 2006-03-22 23:12:03 +00:00
Antony Dovgal
09fcf3162c add test 2006-03-22 23:10:59 +00:00
Antony Dovgal
32f611097f fix #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault)
fix similar issue in offsetExists()
remove redundant semicolons
2006-03-22 21:56:40 +00:00
Antony Dovgal
afd781a09a MFH: initialize retval 2006-03-20 13:54:16 +00:00
Marcus Boerger
7c14d86dc3 - Fix test 2006-03-16 00:39:50 +00:00
Frank M. Kromann
c6b8c26cdf Fix Win32 compilation. 2006-03-14 18:07:51 +00:00
Sebastian Bergmann
e1d9cf07cd MFH: Make spl_register_std_class() and spl_register_sub_class() available outside of SPL, for instance in SPL_Types. 2006-03-09 11:43:45 +00:00
Marcus Boerger
4a5dd30201 - MFH Allow pecl/phar and alike too hook into spl_filesystem_object's 2006-03-08 21:54:48 +00:00
Marcus Boerger
a325d22cd1 - MFH Missed 'proto' 2006-03-06 22:22:54 +00:00
Marcus Boerger
dc8221c154 - Fix last %v, too 2006-03-06 10:56:41 +00:00
Marcus Boerger
94165e41a7 - There is no %v in 5.1 (found by Tony) 2006-03-06 10:09:13 +00:00
Marcus Boerger
e795f8f427 - MFH Proto fixes 2006-03-06 09:50:44 +00:00
Marcus Boerger
7dc322754a - Fix issues with not/double calling of constructors of SPL iterators
- Fix issues with info-class/file-class in SPL directory handling classes
- Add SimpleXMLElement::count()
- Drop erroneous RecursiveDirectoryIterator::getSubPathInfo()
- Drop dead code
- Add tests
- Update docu
2006-03-05 17:39:49 +00:00
Marcus Boerger
728493ca37 - MFH Fix issues withhandling of derived info classes as entries 2006-02-28 01:33:32 +00:00
Marcus Boerger
289f45c279 - Synch docu 2006-02-20 22:21:54 +00:00
Marcus Boerger
4b2b9461d4 - MFH No more old parameter api usage 2006-02-12 16:44:36 +00:00
Antony Dovgal
08c4c9c202 MFH: fix #36359 (splFileObject::fwrite() doesn't write when no data length specified) 2006-02-10 16:57:56 +00:00
Antony Dovgal
bccf4bd9e7 MFH: initialize variables and reduce the number of warnings 2006-02-06 11:28:41 +00:00
Marcus Boerger
ff4ee6f043 - MFH Add new tests 2006-02-06 01:28:12 +00:00
Antony Dovgal
aa920b8e00 MFH: fix #36295 (typo in SplFileObject::flock() parameter name) 2006-02-05 19:23:30 +00:00
Marcus Boerger
39d71e375c - MFH Fix bug #36287 2006-02-05 11:43:44 +00:00
Marcus Boerger
a31f337c24 - MFH Fix ArrayIterator::seek() edge cases 2006-02-02 22:17:42 +00:00
Marcus Boerger
a266261eb6 - Fix oversight 2006-02-02 18:59:11 +00:00
Ilia Alshanetsky
0c972edce4 Only use win32 directory separators on win32 or netware. 2006-02-02 15:10:04 +00:00
Antony Dovgal
0655132e2c add test for bug #36258 2006-02-02 13:56:16 +00:00
Antony Dovgal
ff30daae6e MFH: add missing folding tags
nuke unnecessary semicolons
2006-02-02 12:40:33 +00:00
Antony Dovgal
0506d1a9f5 fix #36258 (SplFileObject::getPath() may lead to segfault) 2006-02-02 12:19:14 +00:00
Ilia Alshanetsky
9cbc3ae264 Fixed bug #36134 (DirectoryIterator constructor failed to detect empty
directory names).
2006-01-23 15:24:10 +00:00
Marcus Boerger
2d1d476391 - MFH Fix error message 2006-01-23 02:26:32 +00:00
Marcus Boerger
d059b92fea - MFH Fix issue found by Nuno 2006-01-15 00:17:43 +00:00
Marcus Boerger
1edc8eec88 - Update 2006-01-14 20:21:10 +00:00
Marcus Boerger
c863542dc1 - Fix #35998 (getPathname() method always returns unix style filenames) 2006-01-13 19:36:57 +00:00
Marcus Boerger
58349878fc - MFH Update 2006-01-06 19:58:10 +00:00
foobar
02f405ccb1 MFH 2006-01-06 14:03:37 +00:00
Marcus Boerger
5121b2a78a - MFH Fix docu 2006-01-05 19:00:27 +00:00
Marcus Boerger
47e6f644f7 - MFH Update examples 2006-01-04 15:34:39 +00:00
Marcus Boerger
34f32d4dcd - Just another place where rewind() might not be set 2006-01-01 19:55:27 +00:00
Marcus Boerger
e99fac3d01 - key() might be optional 2006-01-01 19:51:17 +00:00
Marcus Boerger
d6ee7d1d9a - Fix SEGV when rewind() not set 2006-01-01 19:48:11 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
foobar
cfda375620 MFH 2005-12-25 16:04:15 +00:00
Marcus Boerger
319dff73fb - Make this work with VPATH builds too 2005-12-24 12:23:09 +00:00
Marcus Boerger
7f6018aa3a - WS 2005-12-22 00:37:07 +00:00
Marcus Boerger
53e37ac843 - Fix memleak 2005-12-22 00:35:37 +00:00
Antony Dovgal
c01d79b2df merge two skipif entries 2005-12-22 00:19:28 +00:00
Marcus Boerger
0986f33d1e - Fix memleak 2005-12-22 00:06:38 +00:00
Marcus Boerger
fc0fe6472e - MFH Add missing skipif 2005-12-21 22:22:33 +00:00
Marcus Boerger
fe3f66e188 - We need to store the length of the class name 2005-12-21 20:05:24 +00:00
Marcus Boerger
8e43f0085b - Apply workaround only when neccessary 2005-12-20 21:38:28 +00:00
Antony Dovgal
efff8a45e2 more SPL leak fixes 2005-12-20 12:41:24 +00:00
Antony Dovgal
2a130b19fc fix possible reads of uninitialized memory (reproducible only on 64bit platforms) 2005-12-19 13:53:06 +00:00
Marcus Boerger
32220d2e7e - Check for result of getIterator() call 2005-12-19 00:45:28 +00:00
Marcus Boerger
e989e9f70f - Fix reference counting 2005-12-19 00:32:51 +00:00
Antony Dovgal
9e8a1bfcbe fix leak in SPL iterators 2005-12-18 22:52:24 +00:00
Antony Dovgal
0d38bc9f80 MFH: more spelling fixes 2005-12-18 21:01:27 +00:00
Antony Dovgal
5500dea5f1 MFH: fix spelling 2005-12-18 20:57:27 +00:00
Zeev Suraski
b1264f7172 prototype fix 2005-12-18 15:46:46 +00:00
Zeev Suraski
99cd9ed713 Fix protos 2005-12-18 15:40:34 +00:00
Zeev Suraski
2f3678eb44 Fix prototype 2005-12-18 14:00:23 +00:00
Marcus Boerger
70a53e10c6 - Simplify (+fix memleak) 2005-12-16 23:58:38 +00:00
Marcus Boerger
e4210e3851 - Drop superflous param 2005-12-16 22:38:17 +00:00
Marcus Boerger
69fdadf1a0 - Add SplTempFileObject to output 2005-12-16 22:29:02 +00:00
Marcus Boerger
10f77a5d71 - Add/fix tests 2005-12-16 22:19:02 +00:00
Marcus Boerger
57492cc2d4 - Provide better error message when using illegal function 'pointers' 2005-12-16 22:17:32 +00:00
Marcus Boerger
5c8027584f - MFH Fix issue spotted by Wez using ms vc 2005 2005-12-14 09:55:11 +00:00
Marcus Boerger
bac905b982 MFH:
. Change to use sane default flags fro RecursiveDirectoryIterator
 . Drop 2nd parameter from DirectoryIterator::__construct()
2005-12-11 16:43:29 +00:00
Antony Dovgal
4ccdc86561 fix C++ comment 2005-12-09 13:28:10 +00:00
Antony Dovgal
0d1efb245b MFH: fix segfault in SplFileObject when file doesn't exist or cannot be read 2005-12-08 19:55:13 +00:00
foobar
a4295629b8 MFH 2005-12-06 02:00:14 +00:00
Stanislav Malyshev
3eafc3d329 fix reallocation bug 2005-12-05 19:54:47 +00:00
Marcus Boerger
6dec77d25e - MFH Add class SplFileInfo as base for DirectoryIterator and SplFileObject
# As discussed with ilia before 5.1.0
2005-11-29 03:33:59 +00:00
Marcus Boerger
e8ec9a98dd - Fixed bug #35423 RecursiveDirectoryIterator doesnt appear to recurse with RecursiveFilterIterator 2005-11-27 12:22:54 +00:00
Marcus Boerger
c37b13e0db - MFH Editor blocks 2005-11-27 12:16:14 +00:00
Antony Dovgal
241aa9a59d MFH: fix #35197 (Destructor is not called) and similar issues in other extensions 2005-11-14 22:03:02 +00:00
Marcus Boerger
134b2718d4 - Add new tests 2005-11-07 18:38:20 +00:00
Marcus Boerger
bb293e15c3 - Drop unnecessary param 2005-11-07 13:08:24 +00:00
Marcus Boerger
2ca2153a06 - MFH Add missing check flag 2005-11-03 22:06:30 +00:00
Marcus Boerger
e464f0f456 - MFH Try fixing #35088 2005-11-03 21:59:13 +00:00
Marcus Boerger
7ae7cc363a - MFH Add missing check 2005-11-03 21:28:43 +00:00
Marcus Boerger
8098790208 - Add missing test 2005-11-02 20:32:21 +00:00
Marcus Boerger
50ba309495 - Make spl_autoload_register use zend_is_callable_ex() 2005-11-02 20:31:01 +00:00
Marcus Boerger
1d0b88d316 - Update docu 2005-11-01 21:48:25 +00:00
Marcus Boerger
376d4554fb - MFH the iterator base interface is Traversable not IteratorAggregate 2005-11-01 21:18:24 +00:00
Marcus Boerger
cea6a783af - MFH Add docu 2005-10-30 16:07:45 +00:00
Antony Dovgal
4c98758328 MFH: make compilers happy 2005-10-26 22:47:23 +00:00
Marcus Boerger
936b1e56c3 - MFH zend_is_callable_ex() has been changed 2005-10-25 23:20:29 +00:00
Marcus Boerger
4c8afd895a - MFH Add ability to bypass key() surrounding and make that default 2005-10-13 19:49:27 +00:00
Marcus Boerger
de03dd6387 - MFH Fix potential SEGV with overloaded objects 2005-10-09 14:42:08 +00:00
Marcus Boerger
11f0ff9c1a - Update docu
- Synch class consts with HEAD
- Synch example RecursiveTreeIterator (as far as possible)
2005-10-08 19:09:58 +00:00
Marcus Boerger
b29b16af2e - Synch RecursiveIteratorIterator, fixes a few memory corruptions/memleaks 2005-10-05 21:59:13 +00:00
Marcus Boerger
3ced246dfc - MFH Update examples 2005-10-05 19:11:51 +00:00