Commit Graph

18573 Commits

Author SHA1 Message Date
Andrei Zmievski
34e5b3befa Upgrade uasort() and uksort() to use params API with FCI cache and mark
them with U.
2006-07-17 21:20:02 +00:00
Marcus Boerger
cc3d932875 - Fix #38125 undefined reference to spl_dual_it_free_storage 2006-07-17 21:09:10 +00:00
Andrei Zmievski
fdf280b41b - Upgrade usort() to support Unicode (including valid Unicode callbacks).
- Make usort() use 'f' specifier for function call info/cache.
2006-07-17 20:52:12 +00:00
Michael Wallner
6ad2093794 MFB52: fix bug #37945 pathinfo() cannot handle argument with special
characters like german "Umlaute"
2006-07-17 20:43:07 +00:00
Andrei Zmievski
0bb270d352 - Use zend_uchar for param type
- %v is for UG() - dependent strings, which is not the case here
- 'T' is only useful for multiple parameters, so use 't' instead
2006-07-17 19:32:10 +00:00
Pierre Joye
004ed49028 - MFB: #38112, corrupt GIF Image segfault 2006-07-17 15:08:46 +00:00
Nuno Lopes
068dfca1d7 MFB 2006-07-17 11:39:49 +00:00
Antony Dovgal
a3952b7495 tweak constant() to use the brand new unicode parameters API 2006-07-17 07:11:06 +00:00
Antony Dovgal
8177adf8fb make use of new param parsing API
use convert_to_text(), which makes constant() unicode aware
finally nuke invalid reads
2006-07-17 07:02:26 +00:00
Dmitry Stogov
05dfd8d80b ZTS fix 2006-07-17 06:46:19 +00:00
Antony Dovgal
688000ca74 fix access to freed memory in pathinfo()
add test
2006-07-17 06:44:45 +00:00
Seiji Masugata
df84f5aa45 added option parameter mb_strrpos( ). 2006-07-17 04:44:06 +00:00
Marcus Boerger
e394e8d1f8 -Typo 2006-07-16 23:48:15 +00:00
Marcus Boerger
2f4ca14c0b - Update docu 2006-07-16 23:45:29 +00:00
Marcus Boerger
12edfef4d3 - TSRM Fix 2006-07-16 20:57:40 +00:00
Marcus Boerger
754a741248 - Upgrade RegexIterator capabilities, see docu 2006-07-16 20:52:20 +00:00
Marcus Boerger
78f9ab3454 - This test fails right now and requires a zend API change to fix 2006-07-16 19:50:43 +00:00
Nuno Lopes
cb32fbe9d5 MFB 2006-07-16 19:36:23 +00:00
Marcus Boerger
ac3a58e52d - Little bit refactoring: Two new PHPAPI functions:
. php_pcre_match
  . php_pcre_split
2006-07-16 19:20:05 +00:00
Marcus Boerger
0499e0d8f1 - Update docu 2006-07-16 19:16:40 +00:00
Marcus Boerger
4aa20e0781 - Correct test name 2006-07-16 17:33:46 +00:00
Christian Stocker
1f4cce3e0f MFB
improved code (after suggestion by helly)
2006-07-16 16:04:35 +00:00
Antony Dovgal
50242cd8c5 3+1 != 3 =) 2006-07-16 15:59:02 +00:00
Pierre Joye
02a92e7eb5 - MFB: PATHINFO_FILENAME constant registration (Sara) 2006-07-16 15:56:00 +00:00
Antony Dovgal
6b4bfe4a35 all stream functions are actually macros that already have TSRMLS_CC,
no need to pass it manually
2006-07-16 15:54:25 +00:00
Christian Stocker
812887cedb Added DOMNode::getNodePath() for getting an XPath for a node.
(MFB)
2006-07-16 15:05:32 +00:00
Marcus Boerger
5544029699 - Fixed Bug #29538 number_format and problem with 0 2006-07-16 10:49:06 +00:00
Marcus Boerger
92a47b44b4 - Pathinfo allows to get filename (Toby S, Christian S) 2006-07-16 10:34:32 +00:00
Marcus Boerger
8a314279ab - Update docu 2006-07-15 15:04:52 +00:00
Marcus Boerger
810c9eee76 - Be on the safe side 2006-07-15 14:54:57 +00:00
Marcus Boerger
4afabf96ee - Implement todo: SplFileObject: ability to set the CSV separator per object, part 2 2006-07-15 14:50:38 +00:00
Marcus Boerger
d795e0b9bb - Implement todo: SplFileObject: ability to set the CSV separator per object 2006-07-15 14:31:51 +00:00
Marcus Boerger
395d4ae5e3 - Fix issue with SplFileObject and directories 2006-07-15 13:01:44 +00:00
Marcus Boerger
dd47d64887 - Readd proto 2006-07-15 12:09:13 +00:00
Marcus Boerger
adc5a7f087 - Update array_fill_keys, better unicode support, use new param parsing API 2006-07-15 12:06:10 +00:00
Marcus Boerger
da5c076100 - Add array_fill_keys() (Matt W, php_lists at realplain com) 2006-07-15 10:10:47 +00:00
Andrei Zmievski
246585490b Add test for compact(). 2006-07-14 23:04:58 +00:00
Andrei Zmievski
853ab6e09f Adjust array_pad(), array_reverse(), and array_unique() for params API
and mark them with U.
2006-07-14 22:41:22 +00:00
Andrei Zmievski
5766cdbd01 - Simplify array_combine() and adjust for params API
- Adjust array_count_values() and array_rand() for params API and mark
  with U
2006-07-14 22:15:54 +00:00
Andrei Zmievski
40cabdca59 Adjust array_key_exists(), array_slice(), and array_splice() for params
API and mark them with U.
2006-07-14 21:16:30 +00:00
Sara Golemon
74eb59da59 #38105 (4/3) ustrlen != USTRLEN, update variable names used to keep this block's meaning clear 2006-07-14 20:50:45 +00:00
Antony Dovgal
44ad98405f MFB: rephrase the error message (fixes #38106) 2006-07-14 20:45:37 +00:00
Andrei Zmievski
8d28257255 Make array_change_key_case() -- a candidate for the quite possibly the
most useless function ever -- use params API and mark it with U.
2006-07-14 20:07:57 +00:00
Sara Golemon
165b2f2b76 #38105 (3/3) Default file_put_contents() to FILE_TEXT when unicode.semantics=on and flags param not specified 2006-07-14 19:16:23 +00:00
Andrei Zmievski
6dfb4768b4 Update end(), prev(), next(), reset(), current(), and key() for params
API and mark with U.
2006-07-14 18:12:45 +00:00
Andrei Zmievski
0322c14d14 Update array_search()/in_array() for params API and mark with U. 2006-07-14 18:03:13 +00:00
Andrei Zmievski
f344fe0153 Update array_keys() and array_values() for params API and mark with U. 2006-07-14 17:55:27 +00:00
Andrei Zmievski
c30d1ecf11 - Simplify array_fill().
- Do params API for a couple of funcs and mark them as Unicode
  compliant.
2006-07-14 17:35:54 +00:00
Antony Dovgal
8d8344272e WS and CS fixes
I suppose STR_FREE() is better than if(..) {efree (..);}
2006-07-14 08:38:30 +00:00
Dmitry Stogov
73001d4257 Fixed unserialize() in unicode mode 2006-07-14 08:29:06 +00:00
Andrei Zmievski
f717e25ce7 FIXME note 2006-07-13 22:26:50 +00:00
Andrei Zmievski
c8254d82d7 Update array_sum() and array_product() (U). 2006-07-13 22:26:42 +00:00
Andrei Zmievski
8553cf9da8 Mark a few more funcs. 2006-07-13 22:03:42 +00:00
Andrei Zmievski
2fbc36496f - Let the caller output a warning instead of having
zend_get_unified_string_type() do it.
- Mark a few more functions are Unicode compatible.
2006-07-13 21:27:48 +00:00
Andrei Zmievski
c01957091a - Make compact() normalize variablem name before checking symtable.
- Mark tested/upgraded functions with 'U' flag.
2006-07-13 21:08:43 +00:00
Antony Dovgal
87d846c2cb initialize variables 2006-07-13 17:55:50 +00:00
Dmitry Stogov
2d0539e2ba Unicode support (not finished) 2006-07-13 16:47:26 +00:00
Ilia Alshanetsky
3c75c080cf MFB: Fixed test for systems where set_charset() method is unavailable. 2006-07-13 15:42:55 +00:00
Antony Dovgal
b8059674ee Unicode support in ReflectionParameter::__construct() 2006-07-13 12:34:30 +00:00
Antony Dovgal
8376cd2396 nuke unused variable 2006-07-13 12:15:01 +00:00
Antony Dovgal
12f44c2b2b fix #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length) 2006-07-13 11:58:42 +00:00
Ilia Alshanetsky
896c0e0690 MFB: Fixed compiler warnings. 2006-07-13 00:13:42 +00:00
Antony Dovgal
9aa7c1d6e9 fix assert() in Unicode mode 2006-07-12 22:19:12 +00:00
Andrei Zmievski
938f6d4141 Use zend_convert_from_unicode() in var_dump(). 2006-07-12 17:23:53 +00:00
Michael Wallner
1d6027adbd - add note why replace is 0, so that I don't wonder again in 2 months
why session_regenerate_id() sends the session cookie twice
2006-07-12 15:28:18 +00:00
Antony Dovgal
550a7186c5 restore missing check and prevent segfaulting
MFB and add test
2006-07-12 13:17:25 +00:00
Antony Dovgal
9de18e2ca2 don't try to compare strings if haystack is "" or shorter than needle
add test
2006-07-12 12:33:04 +00:00
Antony Dovgal
3945c5e1c6 MFB: fix #38072 (boolean arg for mysqli_autocommit() is always true on Solaris) 2006-07-12 10:15:30 +00:00
Dmitry Stogov
6a12b2de74 Fixed bug #38067 (Parameters are not decoded from utf-8 when using encoding option) 2006-07-12 09:00:15 +00:00
Hartmut Holzgraefe
4fb0776b8e new test cases for mysqli_warnings and mysql_driver properties 2006-07-12 08:00:24 +00:00
Dmitry Stogov
6abfcba273 Destructors call order is changed (Fixed bug #36759 - Objects destructors are invoked in wrong order when script is finished) 2006-07-12 07:55:04 +00:00
Hartmut Holzgraefe
397a46b559 fixed C&P errors in groups handling, activated groups feature 2006-07-12 07:00:48 +00:00
Hartmut Holzgraefe
eef7cb2d75 make sure embedded server is correctly initialized 2006-07-11 23:41:40 +00:00
Hartmut Holzgraefe
45a238c129 skip when testing embedded server 2006-07-11 23:37:41 +00:00
Hartmut Holzgraefe
0bbeae457b no need to test ping and kill with embedded server 2006-07-11 23:34:27 +00:00
Antony Dovgal
8db69d4005 add new tests by Ligaya Turmelle 2006-07-11 21:28:07 +00:00
Antony Dovgal
f41a4f4546 /tmp is often a symlink, use /bin instead 2006-07-11 21:19:56 +00:00
Andrei Zmievski
42b38dc29c Protos. 2006-07-11 20:51:18 +00:00
Andrei Zmievski
62d76d207f Implement getAll() that can be used to get all the pieces defined by the
boundaries.
2006-07-11 19:43:08 +00:00
Andrei Zmievski
dd9b227506 Make next() and previous() take optional step parameter and optimize
return value usage.
2006-07-11 17:59:46 +00:00
Andrei Zmievski
12615846a4 Implement getRuleStatus() and getRuleStatusArray() as well as related
constants.
2006-07-11 17:48:14 +00:00
Antony Dovgal
84c2620ab0 fix typo
add test with error messages
2006-07-11 16:32:47 +00:00
Andrei Zmievski
4187b2e1a5 Use object flags. 2006-07-11 16:20:21 +00:00
Dmitry Stogov
1e0999fd46 Nuke signed/unsigned compiler warnings 2006-07-11 14:36:05 +00:00
Dmitry Stogov
c429225904 Nuke signed/unsigned compiler warnings 2006-07-11 14:24:39 +00:00
Antony Dovgal
c68b28f250 fix segfault in jfmonthname(), add test
fix tests (I don't have /home/hartmut here =))
2006-07-11 14:15:38 +00:00
Antony Dovgal
af234920c6 MFB: eliminate compile warnings 2006-07-11 12:37:26 +00:00
Hartmut Holzgraefe
ecb58ee2cd check both OO and procedural style as "thread_id" is a property and not
a method in the OO interface
2006-07-11 07:21:27 +00:00
Hartmut Holzgraefe
0bf1cbe8d0 modified test to use (and cover) mysqli->thread_id 2006-07-11 07:10:18 +00:00
Hartmut Holzgraefe
250f4efe6b test kill() 2006-07-11 07:04:44 +00:00
Hartmut Holzgraefe
1c39435499 test ping() 2006-07-11 07:04:31 +00:00
Hartmut Holzgraefe
b259f66300 test multi_query(), next_result(), more_results()
(only partially covered by a bug testcase yet)
2006-07-11 07:04:16 +00:00
Hartmut Holzgraefe
587c37a036 get_client_info() test 2006-07-11 07:03:31 +00:00
Hartmut Holzgraefe
bf71e83fbf test was only covering fetch_fields(), added fetch_field() and fetch_field_direct() 2006-07-11 07:02:50 +00:00
Hartmut Holzgraefe
9301bc929d test was not covering DOUBLE bindings 2006-07-11 07:02:02 +00:00
Andrei Zmievski
dfbf573d5d Implement getAvailableLocales(). 2006-07-10 23:19:05 +00:00
Andrei Zmievski
07bb47a406 Fix validity checks. 2006-07-10 22:12:47 +00:00
Andrei Zmievski
5f19cb01f6 Implement isBoundary() for combining sequences. 2006-07-10 21:42:25 +00:00
Andrei Zmievski
f2cbf6f950 Implement following() for combining sequences. 2006-07-10 21:18:01 +00:00
Antony Dovgal
93ae33c8a4 add Unicode EXPECT tags 2006-07-10 20:48:04 +00:00
Andrei Zmievski
8dd4e2692c Fix combining sequence iterators for forward and backward movement. 2006-07-10 20:14:12 +00:00
Hartmut Holzgraefe
743deb09c9 "transaction" tests should test commit, too, not only rollback 2006-07-10 16:29:24 +00:00
Dmitry Stogov
0a435165ba Fixed memory leaks in ext/spl/tests/fileobject_003.phpt 2006-07-10 15:48:09 +00:00
Hartmut Holzgraefe
4ea4434475 two additional tests improving pdo/pdo_mysql test code coverage 2006-07-10 14:05:46 +00:00
Dmitry Stogov
14a10f441d Fixed bug #37947 (zend_ptr_stack reallocation problem) 2006-07-10 14:02:54 +00:00
Michael Wallner
3c0a4a8b07 - revert messed up patch 2006-07-10 13:16:07 +00:00
Michael Wallner
9539a8b980 - fix 5.2 build 2006-07-10 13:08:11 +00:00
Antony Dovgal
70a7d0319b fix mysqli_*_free_storage() funcs to conform with their prototypes 2006-07-10 13:02:31 +00:00
Dmitry Stogov
0644e2e386 Another fix for #38019 2006-07-10 12:46:46 +00:00
Antony Dovgal
0af0ad4ef7 initialize vars 2006-07-10 11:25:59 +00:00
Dmitry Stogov
f32a21b112 Fixed bug #38055 (Wrong interpretation of boolean parameters) 2006-07-10 10:33:55 +00:00
Dmitry Stogov
1236514b0b Fixed bug #38019 (segfault extending mysqli class) 2006-07-10 10:05:35 +00:00
Dmitry Stogov
517c39a035 Fixed bug #38005 (SoapFault faultstring doesn't follow encoding rules) 2006-07-10 07:41:52 +00:00
Hartmut Holzgraefe
d2cae0ccba SHOW ENGINES is only available in PHP 4.1.2 and above (and the output
format slightly changed between 4.1 and 5.0, too),
SHOW VARIABLES LIKE 'have_%' is the more portable alternative here
2006-07-10 07:39:23 +00:00
Dmitry Stogov
00d9e00ee4 Fixed test 2006-07-10 07:26:31 +00:00
Dmitry Stogov
ae8d24392e Fixed bug #38004 Parameters in SoapServer are decoded twice 2006-07-10 07:23:12 +00:00
Nuno Lopes
b51680b3b6 fix test on non-Harmut machine :) 2006-07-10 07:03:18 +00:00
Marcus Boerger
18d45918bc - Fix bug #37816 ReflectionProperty does not throw exception when accessing protected attribute 2006-07-10 00:13:50 +00:00
Marcus Boerger
465a418908 - Fix logic 2006-07-09 23:28:59 +00:00
Ilia Alshanetsky
a96e3567de MFB: Removed pointless declarations 2006-07-09 23:28:41 +00:00
Hartmut Holzgraefe
86ae9a5756 more test coverage 2006-07-09 22:42:05 +00:00
Hartmut Holzgraefe
1fffe3cfa7 additional test cases added, should now cover all functions and modes
allthough still not all edge cases
2006-07-09 16:30:02 +00:00
Marcus Boerger
359dace679 - Add spl_object_hash() 2006-07-09 10:22:03 +00:00
Nuno Lopes
67793e71c0 change char* to void* when using the 't' parameter (as noted by Andrei) 2006-07-08 21:54:49 +00:00
Andrei Zmievski
63ef7fd050 Implement following() and preceding() for codepoint iterators. 2006-07-08 18:46:24 +00:00
Marcus Boerger
634fd5e58d - Add new test 2006-07-08 11:43:07 +00:00
Nuno Lopes
7a95cb8344 remove some left overs plus static keywording 2006-07-08 00:04:37 +00:00
Nuno Lopes
6cfeae5782 upgrade a couple of functions to Unicode 2006-07-07 23:30:30 +00:00
Andrei Zmievski
73b131869c Implement isBoundary() for code point iterator. 2006-07-07 22:52:26 +00:00
Andrei Zmievski
4757c4ce46 Implement TextIterator::isBoundary() for break iterators. 2006-07-07 22:34:46 +00:00
Andrei Zmievski
abbc1053fd Implement TextIterator methods following() and preceding(). 2006-07-07 21:41:18 +00:00
Hannes Magnusson
7e3e99251f Added new method to see if function is disabled or not 2006-07-07 11:53:54 +00:00
Antony Dovgal
dc9ea3b961 add missing items to the changelog 2006-07-07 09:21:54 +00:00
Ilia Alshanetsky
5166641599 MFB: E_ERROR > E_RECOVERABLE_ERROR 2006-07-06 23:13:41 +00:00
Antony Dovgal
1e5849ca94 add test 2006-07-05 14:12:41 +00:00
Antony Dovgal
6345105612 fix bug #38003(in classes inherited from mysqli it's possible to call private constructors from invalid context)
also, use appropriate macro instead of accessing structure elements directly
2006-07-05 11:48:17 +00:00
Ilia Alshanetsky
a033c5e7f6 MFB: Eliminate some compiler warnings 2006-07-04 20:13:40 +00:00
Derick Rethans
844e32934e - Updated timezonedb to version 2006.7.
- Fixed test cases because of new constant values for the formats.
2006-07-04 18:12:37 +00:00
Hannes Magnusson
2a18040cb5 Obs. ZEND_BEGIN_ARG_INFO => ZEND_BEGIN_ARG_INFO_EX 2006-07-04 15:37:13 +00:00
Hannes Magnusson
2fbf0478da Fix protos&arginfo 2006-07-04 15:33:32 +00:00
Dmitry Stogov
e3fb2af28e Fixed memory leak 2006-07-04 07:34:32 +00:00
Hannes Magnusson
8f1d44beea make everyone happy 2006-07-03 22:41:46 +00:00
Hannes Magnusson
302deb04d8 fix tests 2006-07-03 16:03:39 +00:00
Nuno Lopes
57801820f5 MFB 2006-07-03 14:55:49 +00:00
Hannes Magnusson
12fbcb6344 nuke types in arginfo 2006-07-02 00:10:36 +00:00
Nuno Lopes
ec2b150da0 MFB5.2: fix assert() problems 2006-07-01 12:29:38 +00:00
Hannes Magnusson
226fa23b51 Do not force pass by-ref, these functions only prefer by-ref 2006-06-30 18:16:50 +00:00
Antony Dovgal
9f65fd37c6 add error messages to disk_free_space() & disk_total_space() (feature request #37971) 2006-06-30 10:52:51 +00:00
Antony Dovgal
a6e26b742a fix off-by-one in addslashes() in Unicode mode 2006-06-30 09:35:21 +00:00
Ilia Alshanetsky
661f6a7159 MFB: Fixed test for situations where pspell_clear_session() is unavailable. 2006-06-29 22:54:42 +00:00