Commit Graph

19947 Commits

Author SHA1 Message Date
Hannes Magnusson
5ed5c10517 Fix ZTS build... 2006-12-22 01:07:28 +00:00
Marcus Boerger
844b3a1b86 - Fix memory allocation/deallocation to match 2006-12-22 00:57:51 +00:00
Marcus Boerger
c130110b05 - Make custom serializing work with zstr (as discussed with andrei) 2006-12-22 00:47:27 +00:00
Andrei Zmievski
20e8a1ac55 Fix serialization test. 2006-12-22 00:37:20 +00:00
Andrei Zmievski
4385fe240e levenshtein() already supported Unicode. 2006-12-21 23:52:22 +00:00
Andrei Zmievski
c745a2b18c Metaphone will work only with binary runtime-encoded strings. 2006-12-21 23:43:52 +00:00
Marcus Boerger
8dd85147c4 - No misleading comments 2006-12-21 23:19:48 +00:00
Marcus Boerger
483aae6646 - Mark a fewthings as unicode ready 2006-12-21 22:56:58 +00:00
Marcus Boerger
8794071b21 - Serialization doesn't work with unicode data 2006-12-21 22:55:07 +00:00
Antony Dovgal
921d845f8d temporary fix for oci_error(), just to make it work
it should be using add_ascii_assoc_text() instead
2006-12-21 22:50:57 +00:00
Antony Dovgal
b87049fd42 added support for CALL statement type (patch by Chris Jones) 2006-12-21 22:08:02 +00:00
Andrei Zmievski
757fb1e01f Bite the bullet and port the natural comparison algorithm to support
UChar strings. Also, simplify the original code.

# Argggghh, post-incremented iteration sucks. That means you, U16_* stuff.
2006-12-21 21:47:56 +00:00
Antony Dovgal
5f79b1f89d temp is freed in zend_unicode_to_string() on failure 2006-12-21 21:40:53 +00:00
Antony Dovgal
f7da0df587 lookup_browser_name cannot be NULL 2006-12-21 21:37:09 +00:00
Antony Dovgal
6292c75198 improve tests, add new ones 2006-12-21 19:22:49 +00:00
Seiji Masugata
eb81b301a6 Initial commit(Synced PHP_5_2 Branch.). 2006-12-21 17:44:40 +00:00
Seiji Masugata
0d9e23c38b Synced PHP_5_2 Branch. 2006-12-21 17:37:53 +00:00
Rob Richards
867b39d111 MFB: fix issues identitified by coverity 2006-12-21 12:52:12 +00:00
Antony Dovgal
955e71c985 new tests by Christopher Jones 2006-12-21 12:41:03 +00:00
Ilia Alshanetsky
5da2c7a6df MFB: Optimize out zend_hash_num_elements() call 2006-12-21 01:16:36 +00:00
Antony Dovgal
e2b3141df2 fix leak on error 2006-12-21 01:13:50 +00:00
Antony Dovgal
cbadf38682 fix possible leaks 2006-12-21 01:00:39 +00:00
Antony Dovgal
e5e9865197 bail out if zend_unicode_to_string() fails 2006-12-21 00:25:58 +00:00
Antony Dovgal
0bf0c3c75a fix double free 2006-12-21 00:00:11 +00:00
Antony Dovgal
d0e2e6dfe2 fix potential leak, improve length checks 2006-12-20 23:36:43 +00:00
Marcus Boerger
ba2f82f2eb - Quick hackto make tests pass
# There is something missing, ZVAL_TYPED_ASCII_STRING(z, type, char*,flags)
# Or am i overseeinghow that works?
2006-12-20 23:30:23 +00:00
Antony Dovgal
ddd8d7f3ef do not allocate the return value if it wasn't requested 2006-12-20 23:30:11 +00:00
Antony Dovgal
2073b38b0f fix double free on error 2006-12-20 22:42:59 +00:00
Marcus Boerger
09bee96044 - More unicode 2006-12-20 22:11:14 +00:00
Marcus Boerger
14a81a2974 - Add unicode expectations 2006-12-20 22:08:51 +00:00
Marcus Boerger
8fb4a771bc - Fix test name 2006-12-20 22:08:35 +00:00
Andrei Zmievski
781517eee9 Unicode support in get_browser(). To avoid additional copying/conversion
during parsing, the browscap values in the returned array will be of
IS_STRING type.
2006-12-20 20:45:40 +00:00
Ilia Alshanetsky
646de57e0f Fixed zts build 2006-12-20 19:48:32 +00:00
Antony Dovgal
abac61eec7 remove register_globals remains
maintain an internal reference of _SESSION, so that it won't be possible to destroy it from userspace
2006-12-20 19:20:59 +00:00
Ilia Alshanetsky
29f37953f9 MFB: Fixed bug #39898 (FILTER_VALIDATE_URL validates \r\n\t etc). 2006-12-20 19:20:22 +00:00
Andrei Zmievski
4d90ff003c Align Unicode and binary versions of formatted printing. 2006-12-20 18:33:27 +00:00
Antony Dovgal
c2cc8bae75 don't reinvent the wheel, use sprintf() 2006-12-20 15:12:06 +00:00
Derick Rethans
481d3436bb - Fixed the regexp so that the letter "v" also works. 2006-12-20 14:37:24 +00:00
Antony Dovgal
6fe75a0ae0 gracefully bail out on invalid header 2006-12-20 13:08:54 +00:00
Dmitry Stogov
a7c536fbcd Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a
ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
2006-12-20 10:50:46 +00:00
Hannes Magnusson
460360ae53 MFB:
- Fixed incorrect function names on FreeBSD where inet_pton() was named
        __inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:38:24 +00:00
Andrei Zmievski
b94785e86b Unicode support in ezmlm_hash().
# 50% done, ladies and gents! http://www.php.net/~scoates/unicode
2006-12-19 22:54:24 +00:00
Marcus Boerger
39898f9f9d - Use new 'x' parameter parsing 2006-12-19 22:31:26 +00:00
Marcus Boerger
362b986352 - Make spl_autoload_call() unicode safe 2006-12-19 22:30:59 +00:00
Andrei Zmievski
caa6247e01 Unicode support in set_include_path(). 2006-12-19 22:01:50 +00:00
Nuno Lopes
71cf54dc4c new test 2006-12-19 21:47:16 +00:00
Michael Wallner
88cd3100c7 - check CRYPTO_get_id_callback() if anyone else already set thread lock callbacks 2006-12-19 21:41:12 +00:00
Antony Dovgal
7565c841c8 MFB 2006-12-19 21:40:59 +00:00
Andrei Zmievski
e722dce575 - Marcus was too quick. Let's put type before zstr in the macros.
- Also mark get_include_path() and restore_include_path() with U.
2006-12-19 21:38:59 +00:00
Marcus Boerger
98dce57dd5 - Fix ZVAL_ZSTRL 2006-12-19 21:13:21 +00:00
Antony Dovgal
a38ccf3969 add check for setlocale() and sv_SE to SKIPIF section 2006-12-19 20:46:48 +00:00
Andrei Zmievski
7d966063f6 Unicode support in *printf() functions. (Antony, Andrei) 2006-12-19 18:41:40 +00:00
Nuno Lopes
3945428c9f MFB: little cleanup in json_determine_array_type() 2006-12-19 15:01:57 +00:00
Antony Dovgal
7a965d5b5f add missing SKIPIF sections 2006-12-19 14:16:08 +00:00
Dmitry Stogov
fb7237eebd Support for systems without locale.h 2006-12-19 13:13:48 +00:00
Antony Dovgal
c5edb5a75e fix test on MacOS 2006-12-19 13:11:30 +00:00
Antony Dovgal
5a11f3b174 fix serialize tests after s: -> S: change 2006-12-19 12:45:03 +00:00
Antony Dovgal
b38466a816 MFB: serialize() should use '.' as decimal point irrespectively to locale 2006-12-19 12:44:26 +00:00
Dmitry Stogov
869003830b Fixed bug #39815 (SOAP double encoding is not locale-independent) 2006-12-19 11:55:16 +00:00
Dmitry Stogov
938f3d6efa Added function stream_socket_shutdown(). It is a wraper for system shutdown() function, that shut downs part of a full-duplex connection 2006-12-19 08:59:26 +00:00
Brian Shire
3b4c2e0458 -Fixed bug #30074 (apparent symbol table error with extract($blah, EXTR_REFS))
# appoligies, I did this in reverse (applied to PHP_5_2) I should have MFH.
2006-12-19 08:02:48 +00:00
Pierre Joye
b29953d03c - unicode support for the procedural API 2006-12-19 02:05:27 +00:00
Marcus Boerger
a0733cc2fa - More tests
- Test naming
2006-12-18 23:01:29 +00:00
Hannes Magnusson
c8c1dc1891 Fix ZTS 2006-12-18 22:59:36 +00:00
Marcus Boerger
5a04fb4815 - Support members in SplObjectStorage serialization / shorter serialization 2006-12-18 22:32:10 +00:00
Andrei Zmievski
b04812609b Unicode support in get_cfg_var(). 2006-12-18 20:47:57 +00:00
Andrei Zmievski
b8ead0b253 Fix macro. 2006-12-18 20:40:51 +00:00
Andrei Zmievski
a21e097c54 Unicode support in parse_ini_file(). 2006-12-18 20:39:40 +00:00
Ilia Alshanetsky
2d2ed1ef76 MFB: Fixed bug #39845 (Persistent connections generate a warning in
pdo_pgsql).
2006-12-18 17:56:51 +00:00
Ilia Alshanetsky
f6072e3bea MFB: Cleanup & optimize php_filter_encode_url() 2006-12-18 15:42:31 +00:00
Ilia Alshanetsky
e96275d8a7 MFB: Less hackish support for spaces at the start of tags within
strip_tags()
2006-12-18 15:04:36 +00:00
Ilia Alshanetsky
6c784299e6 MFB: Fixed bugs with trimming of spaces 2006-12-18 14:57:20 +00:00
Antony Dovgal
8489fe67f1 fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong") 2006-12-18 14:55:23 +00:00
Dmitry Stogov
94527816f4 Fixed bug #39832 (SOAP Server: parameter not matching the WSDL specified type are set to 0) 2006-12-18 14:39:39 +00:00
Antony Dovgal
5e105ec732 fix test names 2006-12-18 11:12:41 +00:00
Hannes Magnusson
44693bbf85 - make %f locale aware again
- fix precision loss with %F (noticed by Sebastian Nohn)
- add new tests
2006-12-18 09:25:32 +00:00
Ilia Alshanetsky
0471dd1d94 MFB: Filter fixes:
Fixed possible double encoding problem with sanitizing filters
	Make use of space-strict strip_tags() function
2006-12-18 04:24:38 +00:00
Marcus Boerger
e02a15a625 - Make this work in unicode mode
# Well of course i should have set the return type to ascii here :-)
2006-12-17 23:23:33 +00:00
Ilia Alshanetsky
503a78bc17 MFB: Fixed bug #39779 (Enable AUTH PLAIN mechanism in underlaying
libc-client).
2006-12-17 18:23:10 +00:00
Hannes Magnusson
f696bd11ac MFB: fix build 2006-12-17 12:02:19 +00:00
Ilia Alshanetsky
9d99ba0619 MFB: Fixed bug #39846 (Invalid IPv4 treated as valid). 2006-12-16 21:48:21 +00:00
Hannes Magnusson
950ab95207 Fix ZTS build 2006-12-16 18:31:23 +00:00
Marcus Boerger
1b11ae1e74 - Implement feature request #39836i (SplObjectStorage empty after
unserialize)
# Unicode mode currently does not work...looks like funny changes in the
# unserializer.
2006-12-16 13:55:14 +00:00
Andrei Zmievski
37cd28d88e Unicode support in ini_*() functions. 2006-12-15 23:28:10 +00:00
Wez Furlong
c2a7928496 merge php5 pdo_sqlite into head; this source compiles on both php5 and php6. 2006-12-15 05:03:02 +00:00
Andrei Zmievski
7ccba6624d Use 'S' for escaped binary strings and 's' for non-escaped. 2006-12-14 23:41:57 +00:00
Rob Richards
c27c9666d3 add ability to call PHP functions from XPath
update test
2006-12-14 16:24:00 +00:00
Antony Dovgal
6f0472aa4c erm.. somehow this part got here twice 2006-12-12 22:38:30 +00:00
Michael Wallner
57c7becedc - utf8 2006-12-12 19:32:18 +00:00
Michael Wallner
6abefa16a0 - utf8 CREDITS and php_info API
- unicode progress in info.c
2006-12-12 19:25:47 +00:00
Andrei Zmievski
066ab3c3cf Do not convert args to Unicode in getopt(), they should stay binary. 2006-12-12 18:24:16 +00:00
Andrei Zmievski
c46832a1d5 Make hebrev(c) support only binary strings. 2006-12-12 18:17:56 +00:00
Antony Dovgal
8eb42705d7 disable tests
I don't think it makes sense to test a segfault which we cannot fix..
2006-12-12 13:22:33 +00:00
Antony Dovgal
c3fb5e8045 fix test 2006-12-12 13:12:22 +00:00
Antony Dovgal
fc79cb0974 BFILE tests are only valid when Oracle is installed on the same host
skip them if it's not
2006-12-12 12:57:02 +00:00
Antony Dovgal
f9cace61b6 _THREAD_SAFE might be used instead of _REENTRANT 2006-12-12 12:11:44 +00:00
Antony Dovgal
172efe6886 missing part of the fix for #39795
crypt.h defines struct crypt_data only if _REENTRANT is defined
2006-12-12 12:06:00 +00:00
Antony Dovgal
70638c5cdf fix test 2006-12-12 10:31:36 +00:00
Antony Dovgal
da56bcc2b1 fix LOBs internal position in Unicode mode 2006-12-12 10:31:22 +00:00
Antony Dovgal
0e3b847fe2 add new tests 2006-12-12 09:33:17 +00:00
Antony Dovgal
5f1b060f73 OCILobGetChunkSize() does not like BFILEs, return read_length right away 2006-12-12 09:28:07 +00:00
Antony Dovgal
ec53d3d18a fix #39795 (build fails on AIX because crypt_r() uses different data struct) 2006-12-12 07:36:37 +00:00
Ilia Alshanetsky
63bcfa04e8 MFB: Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday
yields incorrect results).
2006-12-11 21:08:44 +00:00
Antony Dovgal
fb522f16ee prevent any possible problems with negative values 2006-12-11 12:33:55 +00:00
Antony Dovgal
75fa1df0e7 add new test 2006-12-11 12:31:54 +00:00
Ilia Alshanetsky
869fe0320e MFB: Fixed bug #39791 (Crash in strtotime() on overly long relative date
multipliers).
2006-12-11 05:04:58 +00:00
Marcus Boerger
d17cd366e9 - Fix comparison of RecursiveDualIterators 2006-12-10 23:44:35 +00:00
Hannes Magnusson
0bd543a6f2 Fix build 2006-12-10 15:43:13 +00:00
Michael Wallner
8ad12c9899 - upgrade phpinfo() and phpcredits() 2006-12-10 15:02:50 +00:00
Pierre Joye
26c54d4c42 - build fix the other driver as well (a macro would be nicer) 2006-12-10 03:12:11 +00:00
Pierre Joye
216631e809 - MFB: addDir returns true 2006-12-10 03:10:55 +00:00
Pierre Joye
80ecfc354e - MFB: #39286, misleading error message when invalid dimensions are given 2006-12-10 03:03:48 +00:00
Pierre Joye
a6ec097ef9 - fix build on HEAD
(not sure if it should compile on 6 and 5 or if it is required only for
   pdo, other drivers require this fix)
2006-12-10 02:32:17 +00:00
Pierre Joye
df5d4a52f9 - MFB: #39508, imagefill crashes with small image 2006-12-10 02:08:07 +00:00
Pierre Joye
ad5d1383de - #39780, PNG image with CRC/data error raises fatal error 2006-12-10 01:28:01 +00:00
Edin Kadribasic
5ac9df24b6 MFB: Fixed by #39751 by KevinJohnHoffman at gmail dot com 2006-12-10 01:24:13 +00:00
Wez Furlong
bcb1fed3a7 merge PHP 5 pdo into HEAD. This source compiles on both PHP 5 and PHP 6.
If you're poking around in here, please make sure that any changes you make
compile on both PHP 5 and 6.  Thanks!
2006-12-09 22:18:43 +00:00
Ilia Alshanetsky
e0b72d28c6 Improve handling of POST data with Andrei's help. 2006-12-09 14:37:40 +00:00
Ilia Alshanetsky
9901e4a31d MFB:
Fixed handling of multiple cookies with the same name.
	Added support for cookies into run-tests.php
2006-12-09 14:17:17 +00:00
Hannes Magnusson
815ec53657 Fix build 2006-12-09 14:07:13 +00:00
Rob Richards
fb2db6e6b1 MFB: fix heap corruption when adding/caching typelib (also fixes bug 39606)
add test
2006-12-09 10:53:05 +00:00
Ilia Alshanetsky
2dd22beedb MFB: Fixed tests 2006-12-09 03:18:21 +00:00
Ilia Alshanetsky
a8f337d33c MFB: fixed test 2006-12-09 03:07:49 +00:00
Antony Dovgal
ef6bcc4fb3 don't change public API 2006-12-08 21:18:16 +00:00
Antony Dovgal
ef7e4b1332 fix possible issue in the serializer, which might currupt struc when reallocating arguments stack
(no reproduce case, sorry)
2006-12-08 20:59:06 +00:00
Antony Dovgal
a14c81e3c2 fix #39732 (oci_bind_array_by_name doesn't work on Solaris 64bit) 2006-12-08 20:55:14 +00:00
Antony Dovgal
cb4183daeb fix typo 2006-12-08 20:17:31 +00:00
Ilia Alshanetsky
ccc4783e4a MFB: Fixed bug #39759 (Can't use stored procedures fetching multiple result
sets in pdo_mysql).
2006-12-08 19:51:29 +00:00
Andrei Zmievski
59ce8b640b Unicode filename support in dl(). 2006-12-08 19:13:51 +00:00
Antony Dovgal
3945133579 revert the fix for #39763 2006-12-08 17:03:26 +00:00
Rob Richards
45364aea04 mark more functions unicode safe
add test
2006-12-08 16:49:25 +00:00
Rob Richards
95accd75bb mark more functions unicode safe
add tests
2006-12-08 16:28:33 +00:00
Dmitry Stogov
f37ad2e146 Fixed bug #39775 ("Indirect modification ..." message is not shown) 2006-12-08 16:23:04 +00:00
Antony Dovgal
e07f11c421 add new tests by <zoe dot slattery at googlemail dot co dot uk> 2006-12-08 14:38:53 +00:00
Nuno Lopes
90496dbb26 MFB: new tests 2006-12-08 12:15:21 +00:00
Ilia Alshanetsky
6ef2d0dd23 Fixed typo 2006-12-08 03:13:41 +00:00
Sara Golemon
aa08686c85 More BC bodges for fgets/fgetss 2006-12-08 01:02:49 +00:00
Ilia Alshanetsky
e8101a6d16 Allow POST of unicode data as utf8 2006-12-08 00:46:01 +00:00
Antony Dovgal
e0a37e4cf6 MFB test 2006-12-07 23:10:58 +00:00
Antony Dovgal
7ea07ff6dc MFB tests (they still fail though)
fix BC in fgetss()
2006-12-07 23:00:45 +00:00
Andrei Zmievski
3e6c056584 Unicode support in strptime(). Uses runtime encoding for conversion.
# Blah, those new _ut_ macros might be necessary after all.
2006-12-07 22:00:55 +00:00
Andrei Zmievski
de33cc6471 version_compare() will use runtime encoding. 2006-12-07 21:18:45 +00:00
Andrei Zmievski
10af5e6296 Unicode support/safety in iptc* functions. Untested, cause I know crap
about IPTC.
2006-12-07 21:11:54 +00:00
Antony Dovgal
2122cf4fab initialize variables and make Coverity happy 2006-12-07 20:45:21 +00:00
Andrei Zmievski
162dc4c774 Unicode support in parse_url(). 2006-12-07 18:18:49 +00:00
Antony Dovgal
04872050e4 fix #39763 (magic quotes are applied twice by ext/filter)
no need to add slashes manually, they are added by php_register_variable_ex()
2006-12-07 10:59:35 +00:00
Sara Golemon
53a4c18c6a Change fgets() behavior back to BC version 2006-12-07 09:51:36 +00:00
Ilia Alshanetsky
85213a12dc MFB: Fixed bug #39754 (Some POSIX extension functions not thread safe). 2006-12-07 01:41:29 +00:00
Ilia Alshanetsky
38d622732d Allow submission of unicode data in utf8 form 2006-12-07 01:06:54 +00:00
Sara Golemon
982af2061f Use proper zstr for str_getcsv() and add documentation for Andrei's peace of mind 2006-12-06 23:14:15 +00:00
Antony Dovgal
faf0146281 test. please ignore 2006-12-06 20:21:27 +00:00
Ilia Alshanetsky
374a5b63c6 Final set of unicode changes 2006-12-06 18:40:55 +00:00
Ilia Alshanetsky
aa6e70f216 First part of unicode upgrade 2006-12-06 17:52:11 +00:00
Antony Dovgal
6c8ce9805b fix import_request_variables() 2006-12-06 17:42:47 +00:00
Antony Dovgal
e56bd8eed2 add Unicode support to oci_statement_type() 2006-12-06 16:42:27 +00:00
Antony Dovgal
826f06ea88 mark most of the OCI8 functions as unicode aware 2006-12-06 16:36:27 +00:00
Antony Dovgal
b93db04a1d move handling of 'F' to the top 2006-12-06 16:28:27 +00:00
Ilia Alshanetsky
f7289c93db Make functions as being unicode safe 2006-12-06 16:25:17 +00:00
Antony Dovgal
34398156d8 add missing 'F' modified (noticed by Matt) 2006-12-06 14:47:19 +00:00
Antony Dovgal
e7d6927ed6 fix tests 2006-12-06 13:21:48 +00:00
Rob Richards
3d73c5da0d MFB: Fix win32 build 2006-12-06 13:20:17 +00:00
Antony Dovgal
8f98226510 fix tests 2006-12-06 13:11:02 +00:00
Antony Dovgal
4789badd3a use BSD licensed implementation of double-to-string utilities instead of LGPL one
this patch also fixes thread safety issues in zend_strtod()
2006-12-06 09:50:28 +00:00
Antony Dovgal
14df3a4939 let PHP_ADD_EXTENSION_DEP() to take care of this 2006-12-05 23:51:18 +00:00
Ilia Alshanetsky
787a9ede6c MFB: Fixed bug #39724 (Broken build due to spl/filter usage of pcre
extension).
2006-12-05 23:38:10 +00:00
Andrei Zmievski
a775c82161 extract() should convert keys using runtime encoding. 2006-12-05 23:17:06 +00:00
Antony Dovgal
024d8f4376 cosmetic improvements 2006-12-05 23:03:42 +00:00
Frank M. Kromann
234c03a14f Remove PHP4.x stuff 2006-12-05 21:46:33 +00:00
Frank M. Kromann
2381ffba16 #39429 Update API 2006-12-05 21:02:29 +00:00
Antony Dovgal
80fdcd8e06 nuke redundant zval_ptr_dtor() call and fix memory corruption/segfault 2006-12-05 18:42:22 +00:00
Andrei Zmievski
9c1efbe2bb Unicode support in http_build_query(). 2006-12-05 18:41:23 +00:00
Ilia Alshanetsky
c8ba0f9058 MFB: Fixed bug #36798 (Error parsing named parameters with queries
containing high-ascii chars).
2006-12-05 18:05:56 +00:00
Hannes Magnusson
380439a39a MFB: fix test 2006-12-05 15:59:09 +00:00
Antony Dovgal
2f5f375850 don't pass negative maxchars to php_stream_get_line_ex() 2006-12-05 13:45:49 +00:00
Rob Richards
5ccef7164e MFB: fix bug #39625 (Apache crashes on importStylesheet call) 2006-12-05 12:05:03 +00:00
Sara Golemon
fac71c77c1 Add str_getcsv() and fix a couple cases in recent fgetcsv() reimplementation 2006-12-05 04:52:44 +00:00
Sara Golemon
78f65cc451 Unicode upgrade for fgetcsv() 2006-12-05 04:13:47 +00:00
Stanislav Malyshev
40b496d63f Merge from 5.2:
Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
2006-12-05 02:55:27 +00:00
Ilia Alshanetsky
bc07f14f7a MFB: Fixed bug #39571 (timeout ssl:// connections). 2006-12-05 01:39:21 +00:00
Pierre Joye
a62301fc98 - invalid filter id should not return unsafe values 2006-12-05 01:23:42 +00:00
Pierre Joye
bead3e1428 - WS 2006-12-04 21:34:48 +00:00
Pierre Joye
4fcf964c65 - MFB: use %s 2006-12-04 21:23:02 +00:00
Pierre Joye
836e249bcc - WS 2006-12-04 21:16:46 +00:00
Andrei Zmievski
4524457eff Make headers-related functions accept Unicode strings, but only if their
contents can be converted to ASCII.
2006-12-04 20:43:42 +00:00
Andrei Zmievski
411f6ca0fb Unicode support in var_export(). 2006-12-04 18:55:40 +00:00
Ilia Alshanetsky
aaf7159f2a MFB: Fixed tests 2006-12-04 18:30:05 +00:00
Antony Dovgal
6aa5ed0d9c partly fix #39724
ext/spl has a soft dependcy from ext/pcre (not ext/pcre-regex)
2006-12-04 18:01:24 +00:00
Ilia Alshanetsky
10a8b1a152 MFB: Fixed test (user is a reserved keyword in pgsql) 2006-12-04 17:55:56 +00:00
Antony Dovgal
576797c7c1 fix retval type
it should be int, not zend_bool
2006-12-04 15:58:35 +00:00
Andrey Hristov
20fc9486db dummy change 2006-12-04 15:27:18 +00:00
Ilia Alshanetsky
6f6577665e MFB: Fixed bug #38319 (Remove bogus warnings from persistent PDO connections). 2006-12-04 03:08:52 +00:00
Ilia Alshanetsky
7f024a57bc MFB: Fixed bug #38252 (Incorrect PDO error message on invalid default fetch
mode).
2006-12-04 02:40:20 +00:00
Ilia Alshanetsky
e448b6f2b7 MFB: Added test for previous bug 2006-12-04 00:41:07 +00:00
Ilia Alshanetsky
ad2b0a9fef MFB: Fixed bug #39483 (Problem with handling of \ char in prepared
statements).
2006-12-04 00:39:47 +00:00
Ilia Alshanetsky
6c315e1908 MFB:
Default to buffered queries (much faster)
	Default to prepared statement emulation to avoid hitting MySQL bugs
2006-12-03 23:30:24 +00:00
Ilia Alshanetsky
f01de45857 MFB: Added missing check for mismatching number of tokens & bound params in
prepared statement emulation.
2006-12-03 23:28:00 +00:00
Ilia Alshanetsky
a1721fa5d9 MFB: Added "default" option that allows a default value to be set for an
invalid or missing value.
2006-12-03 21:27:51 +00:00
Ilia Alshanetsky
b0bed17255 MFB: Fixed bug #39718 (possible crash if assert.callback is set in ini). 2006-12-03 17:13:27 +00:00
Antony Dovgal
940f70c47b fix leaks 2006-12-03 13:58:54 +00:00
Antony Dovgal
c46f51113a fix AIX build 2006-12-03 13:46:09 +00:00
Nuno Lopes
75011c4d2c add UEXPECT sections 2006-12-03 11:20:32 +00:00
Hannes Magnusson
79f1a51473 MFB: fix test on fbsd 2006-12-03 08:08:18 +00:00
Nuno Lopes
5819d83aeb MFH (not tested. so some tests may fail in unicode mode) 2006-12-02 21:42:30 +00:00
Ilia Alshanetsky
b5e7220dcb MFB: Fixed bug #39527 (Failure to retrieve results when multiple unbuffered,
prepared statements are used in pdo_mysql).
2006-12-02 17:55:05 +00:00
Andrei Zmievski
1f2d5e3b00 Finalize Unicode support in serialize() and unserialize(). 2006-12-01 19:25:11 +00:00
Ilia Alshanetsky
16c58e611a MFB: Fixed a possible memory corruption in dbase_open() with invalid open
mode
2006-12-01 19:10:59 +00:00
Andrei Zmievski
0184d9c864 Fix group macro access. 2006-12-01 18:42:24 +00:00
Nuno Lopes
73d474be62 MFB: fix #39458 2006-12-01 16:42:48 +00:00
Marcus Boerger
61d7b66a81 - Fix handling of recursive inner iterators 2006-12-01 09:28:38 +00:00
Ilia Alshanetsky
fcaf113b33 MFB: Disallow \0 chars inside session.save_path 2006-12-01 00:27:33 +00:00
Andrei Zmievski
45e2197619 get_headers() will keep headers as binary strings. 2006-11-30 22:26:27 +00:00
Andrei Zmievski
658809278e Mark setlocale() as Unicode-safe. It shouldn't be used in
unicode.semantics=on mode anyway.
2006-11-30 21:46:54 +00:00
Andrei Zmievski
6209dc6f49 Forgot to mark import_request_variables() as Unicode-safe. 2006-11-30 21:23:07 +00:00
Andrei Zmievski
d0b44c9eb5 Mark strtr() as Unicode-safe.
# Right, Derick?
2006-11-30 21:20:56 +00:00
Andrei Zmievski
91619d9e1d Mark pack()/unpack() as Unicode-safe. They will accept Unicode strings
but convert them to binary. We can revisit supporting something like 'U'
format in the future, if it's needed.
2006-11-30 21:18:22 +00:00
Andrei Zmievski
8ce99ad71b Make quoted_printable_decode() take only ASCII strings. 2006-11-30 18:32:59 +00:00
Ilia Alshanetsky
b364ca66f6 MFB: Added missing function checks 2006-11-30 16:48:27 +00:00
Ilia Alshanetsky
8efa38df0b zts fixes 2006-11-30 16:38:53 +00:00
Ilia Alshanetsky
204c32b760 MFB: Thread safety fixes. 2006-11-30 16:21:36 +00:00
Ilia Alshanetsky
053747b512 MFB: Use reantrant crypt_r() whenever possible. 2006-11-30 16:00:05 +00:00
Ilia Alshanetsky
55ebcb9f7e MFB: Use thread-safe code 2006-11-30 15:13:33 +00:00
Ilia Alshanetsky
24731d0ba9 MFB: Thread safety fixed for *nix systems 2006-11-30 00:35:27 +00:00
Ilia Alshanetsky
b9e264d497 MFB: Fixed bug #39648 (Implementation of PHP functions chown() and chgrp()
are not thread safe).
2006-11-29 23:46:25 +00:00
Antony Dovgal
573ff9aaa5 add missing folding marker 2006-11-29 22:53:21 +00:00
Derick Rethans
26568762da - Updated timezone database to version 2006.16. 2006-11-29 20:01:28 +00:00
Ilia Alshanetsky
460e59a1b5 MFB: Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory
corruption on Windows in pgsql and pdo_pgsql extensions).
2006-11-29 15:47:41 +00:00
Antony Dovgal
9ed4f515d1 fix #39673 (file_get_contents causes bus error on certain offsets) 2006-11-29 11:10:49 +00:00
Rob Richards
f799b0b19b MFB: correct fix for bug #39662 to fix leak and tree corruption
fix test
2006-11-29 08:52:08 +00:00
Marcus Boerger
f40fd6731c - Add new example 2006-11-28 22:19:22 +00:00
Antony Dovgal
4b52ecf332 add php_unescape_html_entities() proto to the header 2006-11-28 20:40:29 +00:00
Antony Dovgal
d2e03795d9 fix #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement) 2006-11-28 18:57:37 +00:00
Antony Dovgal
7499bd74b6 add test 2006-11-28 16:55:25 +00:00
Ilia Alshanetsky
2b703207d5 MFB: Fixed bug #39656 (crash when calling fetch() on a PDO statment object
after closeCursor()).
2006-11-28 16:28:07 +00:00
Antony Dovgal
1d21b86f1d fix #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled) 2006-11-28 11:38:57 +00:00
Ilia Alshanetsky
820b30bcb8 MFB: Replace non-threadsafe rand() with php_rand_r() 2006-11-28 00:24:16 +00:00
Antony Dovgal
8e6bca8f07 fix #39564 (PDO::errorInfo() returns inconsistent information when sqlite3_step() fails) 2006-11-27 12:13:02 +00:00
Antony Dovgal
fef764b122 fix test
this errmsg is different on FreeBSD
2006-11-27 11:43:45 +00:00
Ilia Alshanetsky
41da75d59f MFB: Fixed bug #39623 (thread safety fixes on *nix for mime_magic extenion). 2006-11-26 17:03:15 +00:00
Ilia Alshanetsky
1c4d86e6d4 MFB: Fixed test, in some versions of c-client returned value is always
uppercase
2006-11-26 16:31:57 +00:00
Ilia Alshanetsky
dcf2056b91 MFB: fixed test 2006-11-26 16:29:55 +00:00
Ilia Alshanetsky
969ce8a603 MFB: Added a meta tag to phpinfo() output to prevent search engines from
indexing the page.
2006-11-26 16:26:32 +00:00
Antony Dovgal
a1f6c395cf fix #39621 (str_replace() is not binary safe on strings with equal length) 2006-11-24 21:57:31 +00:00
Antony Dovgal
5bc9641a77 add missing argument to zend_parse_parameters() 2006-11-24 21:54:41 +00:00
Nuno Lopes
2eef6c8793 more tests 2006-11-24 20:20:51 +00:00
Nuno Lopes
48fd490fb5 MFB 2006-11-24 15:50:45 +00:00
Antony Dovgal
9f99f2e9b1 fix test 2006-11-24 13:40:29 +00:00
Antony Dovgal
a3cf20ddc3 fix #39583 (ftp_put() does not change transfer mode to ASCII) 2006-11-24 12:38:25 +00:00
Antony Dovgal
c5808d7029 fix #39613 (Possible segfault in imap initialization due to missing module dependency)
patch by wharmby at uk dot ibm dot com
2006-11-24 10:28:26 +00:00
Nuno Lopes
a75c11138b MFB 2006-11-23 20:48:21 +00:00
Nuno Lopes
fc24777859 MFB 2006-11-23 17:37:16 +00:00
Antony Dovgal
577d3dec4c fix error messages in Unicode mode when global error handle is used 2006-11-23 16:08:41 +00:00
Antony Dovgal
afd25b61a4 fix oci_bind_array_by_name() with SQLT_ODT type
fix tests
2006-11-23 15:23:10 +00:00
Ilia Alshanetsky
5d9c6b33d0 MFB: Fixed a possible crash 2006-11-23 14:41:51 +00:00
Antony Dovgal
88f51bc2e5 fix tests 2006-11-23 14:36:55 +00:00
Antony Dovgal
f63754eb19 fix oci_bind_array_by_name() in Unicode mode 2006-11-23 14:20:59 +00:00
Andrei Zmievski
f2ab79dfc7 Unicode support in get_html_translation_table(). 2006-11-22 22:18:46 +00:00
Andrei Zmievski
bb765e86ef *** empty log message *** 2006-11-22 21:22:27 +00:00
Andrei Zmievski
ddee40dffb Unicode support in ftok(). 2006-11-22 21:22:14 +00:00
Andrei Zmievski
5732620630 - Unicode support for tick functions.
- Update unicode-progress.txt
2006-11-22 19:13:19 +00:00
Ilia Alshanetsky
2dbccb34d4 MFB: Fixed a possible crash in dbase_open() on empty filename. 2006-11-22 17:30:52 +00:00
Pierre Joye
19abc4b507 - #39538, fgetcsv can't handle starting newlines and trailing odd
number of backslashes (David Soria Parra, Pierre)
2006-11-22 12:56:26 +00:00
Antony Dovgal
5f29b8e40e fix #39576 (array_walk() doesn't separate userdata zval) 2006-11-22 10:58:11 +00:00
Andrey Hristov
c60949d0b1 space to tab 2006-11-22 10:11:58 +00:00
Andrei Zmievski
b767e3cf9f Unicode support in import_request_variables(). 2006-11-21 22:21:38 +00:00
Andrei Zmievski
7cb10e9620 Note. 2006-11-21 18:45:21 +00:00
Andrei Zmievski
e6284e9cbc Unicode support in highlight_string(). 2006-11-21 18:40:58 +00:00
Antony Dovgal
ee8e633e8b remove redundant error message
add test by <zoe dot slattery at googlemail dot com>
2006-11-21 17:40:38 +00:00
Ilia Alshanetsky
d301eb38ff Fixed build 2006-11-21 15:58:29 +00:00
Ilia Alshanetsky
f1fdf21706 MFB: Adjust previous patch to work better 2006-11-21 15:58:12 +00:00
Antony Dovgal
8373efc9b9 fix #39551 (Segfault with stream_bucket_new in user filter)
also fixes several segfaults and leaks
add test
2006-11-21 15:47:44 +00:00
Antony Dovgal
6f11c0cc73 add new test 2006-11-20 22:17:00 +00:00
Antony Dovgal
90afd8b5b8 improve test 2006-11-20 20:54:52 +00:00
Marcus Boerger
0187226da0 - Fix arginfo 2006-11-20 20:03:46 +00:00
Marcus Boerger
91ac043e7e - Add new test 2006-11-20 19:55:54 +00:00
Marcus Boerger
ddd4482998 - Add optional use_keys parameter to iterator_to_array(), (idea by Kevin) 2006-11-20 19:50:19 +00:00
Ilia Alshanetsky
f09218a04c MFB: Fixed compiler warnings 2006-11-20 19:06:09 +00:00
Antony Dovgal
b198d2d028 fix test on Solaris 2006-11-20 16:28:14 +00:00
Antony Dovgal
7032c7dddf efree() if not NULL 2006-11-20 11:12:35 +00:00
Nuno Lopes
d12df980e5 MFB 2006-11-19 18:38:11 +00:00
Ilia Alshanetsky
75f45d8458 MFB: pack()/unpack() tests 2006-11-19 18:31:22 +00:00
Ilia Alshanetsky
316e7a5b2d MFB: Fixed bug #38770 (unpack() broken with longs on 64 bit machines). 2006-11-19 18:21:50 +00:00
Georg Richter
cdd3e8be92 added testcases for ext/mysql (written by Ulf Wendel) 2006-11-19 12:14:44 +00:00
Georg Richter
317564fc1a added unicode support for ext/mysql 2006-11-19 12:10:19 +00:00
Andrei Zmievski
97270f4e75 Use u_memcpy() instead of memcpy(). 2006-11-17 16:45:28 +00:00
Andrei Zmievski
b1d83fec6b Fix memory leaks and segfault. 2006-11-17 16:44:23 +00:00
Michael Wallner
63f4d8e08b - return domain in FS encoding
- use ZSTR_DUPLICATE
2006-11-17 13:37:02 +00:00
Dmitry Stogov
a563332ee4 COM initialization/deinitialization are done only if necessary 2006-11-17 11:41:13 +00:00
Dmitry Stogov
57d22421db Unicode support.
Now the real UG(unicode) value is available during MINIT calls.
2006-11-17 10:48:53 +00:00
Derick Rethans
7e56771f94 - Add the strtr implementation for unicode for the case where there are
characters with a code point value >= 256.
2006-11-16 20:33:44 +00:00
Ilia Alshanetsky
56742f85a5 MFB: fixed compiler warnings 2006-11-16 17:34:42 +00:00
Antony Dovgal
c41f14297c fix tests (add missing SKIPIF sections and a fix for FreeBSD) 2006-11-16 13:49:01 +00:00
Michael Wallner
d10aa39ce4 - fix protos 2006-11-16 13:36:03 +00:00
Antony Dovgal
107229611b more new tests, yikes! 2006-11-16 13:00:03 +00:00
Michael Wallner
c535fc7a32 - unicode upgrade
- fix typo: ENIGNA->ENIGMA
- add and fix tests
2006-11-15 22:51:45 +00:00
Antony Dovgal
0ca02684c1 fix array_key_exists() with NULL key in Unicode mode 2006-11-15 22:43:19 +00:00
Antony Dovgal
1063fa6a90 add new tests 2006-11-15 22:42:28 +00:00
Antony Dovgal
37754b437f fix memory leak and typo in zend_parse_parameters(), which caused segfault
add test
2006-11-15 22:09:25 +00:00
Ilia Alshanetsky
0252643b32 MFB: Fixed bug #37773 (iconv_substr() gives "Unknown error" when string
length = 1").
2006-11-15 18:35:18 +00:00
Antony Dovgal
7c08c95070 fix leak appearing when converting object to NULL
add test
2006-11-15 17:28:56 +00:00
Antony Dovgal
bbc854a4bd add new tests 2006-11-15 17:26:54 +00:00