Nuno Lopes
1511cee1a0
MFB
2006-12-27 15:18:15 +00:00
Andrei Zmievski
6212288bea
Unicode support in sscanf() and fscanf(). (Tony, Andrei)
2006-12-26 22:34:05 +00:00
Ilia Alshanetsky
2dbfe66e4a
MFB: safety checks
2006-12-26 17:40:20 +00:00
Antony Dovgal
df52817f48
use safe_emalloc()
2006-12-25 22:12:36 +00:00
Ilia Alshanetsky
0b145dcb90
MFB: Fixed test for 64bit systems
2006-12-25 21:08:10 +00:00
Antony Dovgal
824323149f
stream_socket_shutdown() is Unicode safe by definition
2006-12-25 19:19:08 +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
a5ca775c02
fix test
2006-12-25 14:27:44 +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
Andrei Zmievski
f88aa1b9ab
Unicode support in number_format().
2006-12-22 21:18:30 +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
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
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
8794071b21
- Serialization doesn't work with unicode data
2006-12-21 22:55:07 +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
e2b3141df2
fix leak on error
2006-12-21 01:13:50 +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
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
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
Andrei Zmievski
4d90ff003c
Align Unicode and binary versions of formatted printing.
2006-12-20 18:33:27 +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
Andrei Zmievski
caa6247e01
Unicode support in set_include_path().
2006-12-19 22:01:50 +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
Andrei Zmievski
7d966063f6
Unicode support in *printf() functions. (Antony, Andrei)
2006-12-19 18:41:40 +00:00
Dmitry Stogov
fb7237eebd
Support for systems without locale.h
2006-12-19 13:13:48 +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
Hannes Magnusson
c8c1dc1891
Fix ZTS
2006-12-18 22:59:36 +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
e96275d8a7
MFB: Less hackish support for spaces at the start of tags within
...
strip_tags()
2006-12-18 15:04:36 +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
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
Hannes Magnusson
950ab95207
Fix ZTS build
2006-12-16 18:31:23 +00:00
Andrei Zmievski
37cd28d88e
Unicode support in ini_*() functions.
2006-12-15 23:28:10 +00:00
Andrei Zmievski
7ccba6624d
Use 'S' for escaped binary strings and 's' for non-escaped.
2006-12-14 23:41:57 +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
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
ec53d3d18a
fix #39795 (build fails on AIX because crypt_r() uses different data struct)
2006-12-12 07:36:37 +00:00
Michael Wallner
8ad12c9899
- upgrade phpinfo() and phpcredits()
2006-12-10 15:02:50 +00:00
Edin Kadribasic
5ac9df24b6
MFB: Fixed by #39751 by KevinJohnHoffman at gmail dot com
2006-12-10 01:24:13 +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
cb4183daeb
fix typo
2006-12-08 20:17:31 +00:00
Andrei Zmievski
59ce8b640b
Unicode filename support in dl().
2006-12-08 19:13:51 +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
Sara Golemon
aa08686c85
More BC bodges for fgets/fgetss
2006-12-08 01:02:49 +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
Sara Golemon
53a4c18c6a
Change fgets() behavior back to BC version
2006-12-07 09:51:36 +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
6c8ce9805b
fix import_request_variables()
2006-12-06 17:42:47 +00:00
Antony Dovgal
b93db04a1d
move handling of 'F' to the top
2006-12-06 16:28:27 +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
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
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
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
Antony Dovgal
2f5f375850
don't pass negative maxchars to php_stream_get_line_ex()
2006-12-05 13:45:49 +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
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
b0bed17255
MFB: Fixed bug #39718 (possible crash if assert.callback is set in ini).
2006-12-03 17:13:27 +00:00
Antony Dovgal
c46f51113a
fix AIX build
2006-12-03 13:46:09 +00:00
Andrei Zmievski
1f2d5e3b00
Finalize Unicode support in serialize() and unserialize().
2006-12-01 19:25:11 +00:00
Andrei Zmievski
0184d9c864
Fix group macro access.
2006-12-01 18:42:24 +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
053747b512
MFB: Use reantrant crypt_r() whenever possible.
2006-11-30 16:00:05 +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
9ed4f515d1
fix #39673 (file_get_contents causes bus error on certain offsets)
2006-11-29 11:10:49 +00:00
Antony Dovgal
4b52ecf332
add php_unescape_html_entities() proto to the header
2006-11-28 20:40:29 +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
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
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
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
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
90afd8b5b8
improve test
2006-11-20 20:54:52 +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
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
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
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
Antony Dovgal
c41f14297c
fix tests (add missing SKIPIF sections and a fix for FreeBSD)
2006-11-16 13:49:01 +00:00
Antony Dovgal
107229611b
more new tests, yikes!
2006-11-16 13:00:03 +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
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
Antony Dovgal
a92ccf9ab1
fix test on AIX
2006-11-15 12:11:07 +00:00
Antony Dovgal
f9847c0d0e
fix test
2006-11-15 11:27:10 +00:00
Antony Dovgal
af43feda28
fix test
2006-11-15 10:48:30 +00:00
Antony Dovgal
f9d4063fed
one more test
2006-11-14 22:23:23 +00:00
Antony Dovgal
41bb09b30d
add new tests
2006-11-14 21:59:02 +00:00
Derick Rethans
3a659a6a05
- No idea if we actually support 16 bit systems, but this just looked wrong
2006-11-14 14:41:09 +00:00
Antony Dovgal
c7fd59af0f
don't forget to close the stream when/if flock() fails
2006-11-13 20:31:15 +00:00