Commit Graph

19947 Commits

Author SHA1 Message Date
Nuno Lopes
0fe5fabd9b fix build 2006-12-26 22:07:45 +00:00
Ilia Alshanetsky
2dbfe66e4a MFB: safety checks 2006-12-26 17:40:20 +00:00
Ilia Alshanetsky
4386719b07 MFB: Session deserializer protection. 2006-12-26 17:18:28 +00:00
Ilia Alshanetsky
fdf33c7593 MFB: Fixed bug #39878 (CURL doesn't compile on Sun Studio Pro). 2006-12-26 16:57:51 +00:00
Antony Dovgal
79c8816327 fix arguments order (just in the sake of purity) 2006-12-26 12:29:32 +00:00
Pierre Joye
5f83f04cbb - Add better zlib detection 2006-12-26 10:42:25 +00:00
Pierre Joye
1766548574 - #39952 zip ignoring --with-libdir on zlib checks (judas dot
iscariote at gmail dot com)
2006-12-26 09:52:32 +00:00
Dmitry Stogov
b0c3becc4f Code review:
. fixed integer overflow
  . fixed buffer overflow/underflow
  . added more strict IP validation
  . reimplemented float number validation
2006-12-26 09:16:39 +00:00
Antony Dovgal
fa6ec58949 add missing space for \0 2006-12-25 22:40:13 +00:00
Antony Dovgal
3bbf11859c more safe_emalloc() 2006-12-25 22:27:12 +00:00
Antony Dovgal
df52817f48 use safe_emalloc() 2006-12-25 22:12:36 +00:00
Antony Dovgal
f3c0c42b76 use safe_emalloc() 2006-12-25 21:45:09 +00:00
Ilia Alshanetsky
0b145dcb90 MFB: Fixed test for 64bit systems 2006-12-25 21:08:10 +00:00
Antony Dovgal
dbcb473139 use safe_emalloc() 2006-12-25 21:07:32 +00:00
Antony Dovgal
b1813c961b use safe_emalloc() 2006-12-25 20:53:43 +00:00
Antony Dovgal
a30e5b9920 use safe_emalloc() 2006-12-25 20:44:28 +00:00
Antony Dovgal
487ce5744a improve check for overflow 2006-12-25 20:03:20 +00:00
Antony Dovgal
e185df5995 fix CS, add missing folding markers
mark Unicode safe functions as they are
2006-12-25 19:34:00 +00:00
Antony Dovgal
824323149f stream_socket_shutdown() is Unicode safe by definition 2006-12-25 19:19:08 +00:00
Antony Dovgal
184406c016 fix proto 2006-12-25 19:12:39 +00:00
Antony Dovgal
549b48aee3 fix protos 2006-12-25 19:08:33 +00:00
Antony Dovgal
611c688d7c mark most of the ext/posix functions as Unicode safe, for they do not use strings in any way 2006-12-25 19:03:56 +00:00
Antony Dovgal
fa3c084b36 mark all LOB functions as Unicode safe 2006-12-25 18:57:15 +00:00
Ilia Alshanetsky
428f53e5fb MFB: Use %F (ignores locale) for internal representation of floats 2006-12-25 16:49:05 +00:00
Antony Dovgal
03aea51026 fix build 2006-12-25 15:28:44 +00:00
Antony Dovgal
a5ca775c02 fix test 2006-12-25 14:27:44 +00:00
Ilia Alshanetsky
d98c67c89d MFB: Define SENDBUFLEN for older c-client libs 2006-12-25 14:23:38 +00:00
Antony Dovgal
a2d8ca3b53 update credits at request of Gabor 2006-12-25 11:50:23 +00:00
Antony Dovgal
524eb56503 fix tests 2006-12-25 11:16:05 +00:00
Antony Dovgal
ebfd8e9bf2 fix #36392 in Unicode mode 2006-12-25 11:15:08 +00:00
Ilia Alshanetsky
6fa038ae50 MFB: Fixed buffer boundary protection 2006-12-24 22:15:18 +00:00
Ilia Alshanetsky
59b437aff8 MFB: Added empty string checks 2006-12-24 20:50:21 +00:00
Rob Richards
2185635e10 update function signature 2006-12-24 12:42:47 +00:00
Rob Richards
1a6ea57ee9 MFB: fix bug #33734 and related (Something strange with COM Object)
- caused by fix in com_handlers.c rev 1.22.2.5
2006-12-24 12:32:35 +00:00
Rob Richards
39c037b734 MFB:
- fix bug #33386 (ScriptControl only sees last function of class): com_wrapper.c
- fix bug #37588 (COM Property propputref converts to PHP function
  and can't be accesed): com_handlers.c
- fix bug #39596 (Creating Variant of type VT_ARRAY): com_variant.c
- add tests
2006-12-24 10:02:00 +00:00
Ilia Alshanetsky
34dc00fd7a MFB: safety checks 2006-12-23 23:29:41 +00:00
Ilia Alshanetsky
4e17200d59 MFB: Added checks for negative max length and overflow checks for overly
long strings.
2006-12-23 18:50:52 +00:00
Derick Rethans
7b170eea73 - MFB: Fixed bug #39935 (Extensions tidy,mcrypt,mhash,pdo_sqlite ignores
--with-libdir).
2006-12-23 18:00:49 +00:00
Antony Dovgal
083bddc23d fix test 2006-12-23 14:14:14 +00:00
Antony Dovgal
8a3000977c fix tests 2006-12-23 14:10:52 +00:00
Antony Dovgal
96d19377ce use add_ascii_assoc_text() 2006-12-23 14:10:35 +00:00
Antony Dovgal
19060d3a14 use OCI_SUCCESS constant, do not rely on its value 2006-12-23 14:02:38 +00:00
Andrei Zmievski
f88aa1b9ab Unicode support in number_format(). 2006-12-22 21:18:30 +00:00
Nuno Lopes
168185e7a0 fix lcov/genhtml build (yes it is very picky) 2006-12-22 17:02:54 +00:00
Ilia Alshanetsky
2b23e4e205 MFB: Fixed bug #39884 (ReflectionParameter::getClass() throws exception for
type hint self).
2006-12-22 15:38:42 +00:00
Ilia Alshanetsky
2e5e31c6b8 MFB: Fixed bug #36392 (wrong number of decimal digits with %e specifier in
sprintf).
2006-12-22 15:30:18 +00:00
Antony Dovgal
2010ae0c5c more OCI8 tests by Chris Jones 2006-12-22 13:28:46 +00:00
Antony Dovgal
a7e4f10ae2 more ext/date tests by Chris Jones 2006-12-22 13:07:26 +00:00
Ilia Alshanetsky
3eadc2ad58 MFB: Fixed bug #39873 (number_format() breaks with locale & decimal points). 2006-12-22 04:03:35 +00:00
Hannes Magnusson
2d0d09830c Fix tests 2006-12-22 01:20:24 +00:00
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