Andrei Zmievski
8d953e611d
Unicode support for str_shuffle().
2006-08-09 20:19:06 +00:00
Andrei Zmievski
7201041bc0
Upgrade str_rot13() to work with IS_UNICODE type.
2006-08-09 20:03:22 +00:00
Frank M. Kromann
4fef78869b
Fix ZTS builds
2006-08-09 18:15:06 +00:00
Andrei Zmievski
533196671f
addcslashes() and stripcslashes() should work only on binary strings.
2006-08-09 17:40:21 +00:00
Antony Dovgal
2168051985
initialize vars
2006-08-08 22:01:48 +00:00
Andrei Zmievski
1b18b5a68f
Convert nl2br() to suppor IS_UNICODE.
...
# Hmm, it's a bit ugly..
2006-08-08 21:03:11 +00:00
Antony Dovgal
9cc9f2da3e
use memrchr/zend_memrchr instead of strrchr
...
fix wrong test
2006-08-08 09:48:08 +00:00
Antony Dovgal
8320b9a8f0
fix typo and invalid read
2006-08-08 08:59:51 +00:00
Andrei Zmievski
50cb40f389
Simplify strrchr().
2006-08-04 23:20:04 +00:00
Andrei Zmievski
ad017699b1
Upgrade pathinfo() to Unicode support.
2006-08-04 21:06:11 +00:00
Andrei Zmievski
9ff2107cc1
Upgrade dirname() to support IS_UNICODE.
2006-08-04 18:09:46 +00:00
Andrei Zmievski
49f1d3a779
Upgraded basename() to work on IS_UNICODE strings as well.
2006-08-03 23:45:27 +00:00
Andrei Zmievski
768a9227ed
- Adjusted php_u_strtoupper/php_u_strtolower/php_u_strtotitle API to be
...
more sane.
- Upgrade strtoupper(), strtolower(), strtotitle() to use params API.
2006-08-03 23:09:29 +00:00
Andrei Zmievski
72adc1b397
Update similar_text() to use params API.
2006-08-03 21:46:16 +00:00
Andrei Zmievski
f6f8792be4
A few fixes noted during analysis.
2006-08-02 21:53:43 +00:00
Andrei Zmievski
09811323a9
bin2hex() should accept only binary strings.
2006-08-02 20:38:39 +00:00
Antony Dovgal
f6de0063dd
patch for #37846 (wordwrap() wraps incorrectly)
...
by Dmitry Kononov <ddk at krasn dot ru>
2006-07-28 12:21:34 +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
Antony Dovgal
688000ca74
fix access to freed memory in pathinfo()
...
add test
2006-07-17 06:44:45 +00:00
Pierre Joye
02a92e7eb5
- MFB: PATHINFO_FILENAME constant registration (Sara)
2006-07-16 15:56:00 +00:00
Marcus Boerger
92a47b44b4
- Pathinfo allows to get filename (Toby S, Christian S)
2006-07-16 10:34:32 +00:00
Andrei Zmievski
f717e25ce7
FIXME note
2006-07-13 22:26:50 +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
Antony Dovgal
87d846c2cb
initialize variables
2006-07-13 17:55:50 +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
a6e26b742a
fix off-by-one in addslashes() in Unicode mode
2006-06-30 09:35:21 +00:00
Hannes Magnusson
bf0a79d381
Updated protos
...
Fixed vim folding
2006-06-25 19:19:31 +00:00
Hannes Magnusson
53d262c04d
Nuke unused var
2006-06-11 20:33:29 +00:00
Ilia Alshanetsky
6434512a05
MFB: Improved performance of str_replace() when doing 1 char to 1 char or 1
...
char to many chars replacement by 30-40%.
2006-06-10 15:51:23 +00:00
Johannes Schlüter
40da89d6b9
- Fix str_replace with unicode strings as key
2006-05-28 21:09:58 +00:00
Ilia Alshanetsky
7dd87b5307
MFB: Fixed bug #37394 (substr_compare() returns an error when offset equals
...
string length).
2006-05-10 13:07:56 +00:00
Antony Dovgal
7bde7e87eb
MF51: fix possible substr_compare() crash
...
add new tests
2006-04-25 12:49:04 +00:00
Andrei Zmievski
efd298e2eb
I'm not sure what the heck people were thinking here, but it should be
...
fixed finally. Please test.
2006-04-18 05:18:12 +00:00
Andrei Zmievski
6b336175a6
Fix trim("a") bug.
2006-04-18 02:40:29 +00:00
Antony Dovgal
0b0fff07b2
fix spelling in error messages:
...
greater/less thEn -> greater/less thAn
2006-04-03 09:14:50 +00:00
Andrei Zmievski
d57e79782e
Bug!
2006-03-29 05:56:06 +00:00
Andrei Zmievski
e85495f6f1
Fix UErrorCode check.
2006-03-27 23:05:38 +00:00
Dmitry Stogov
bdfa3b1d36
Fixed ZTS build
2006-03-27 06:02:42 +00:00
Derick Rethans
3df5f17231
- Commit intermediate work so that I can hack on it on some plane.
2006-03-26 02:15:47 +00:00
Derick Rethans
3056defb26
- Moved strtotitle to ext/standard and implemented the fallback case to
...
non-unicode with ucwords. There is also an implementation for unicode ucwords
but that returns different results then strtotitle as it uppercases the
first character of every word, and doesn't *titlecase* a word. The test case
shows that.
2006-03-22 10:20:20 +00:00
Marcus Boerger
792e4d9f4d
- Fix TSRM
2006-03-17 23:14:55 +00:00
Andrei Zmievski
6b165251db
Calculate the size of the tmp[] buffer directly at compile time.
2006-03-17 22:51:20 +00:00
Derick Rethans
2ffc93140d
- Fixed bug in ucfirst() implementation. If the tmp_len = 0 then it will not
...
write the uppercased character to the buffer, but only returns the length of
the uppercased letter as per
http://icu.sourceforge.net/apiref/icu4c/ustring_8h.html#a50 .
- Updated is_string():
If Unicode semantics is turned on, return "true" for Unicode strings only.
If Unicode semantics is turned off, return "true" for native strings only.
- Added is_binary() function that returns "true" for native strings only.
- Added first implementation of upgraded strtr function. It works except if
combining sequences or surrogates are used in the non-array method of calling
this function.
2006-03-17 14:29:05 +00:00
Derick Rethans
c76917a773
- Fixed two memory issues:
...
- In the first one we were calculating the tmp_len wrong which made the
u_strFromUTF32() function try to convert too many code points.
- The second issue was a bit more subtle as the "what" string wasn't
duplicated but still modified. This string is passed as data to the
function and this kind of data the engine tries to free when the function
ends. Because we were re-allocating the data the original memory location
was already freed resulting in a double free error when the engine tries to
free the argument as it was passed to the function.
2006-03-15 12:20:49 +00:00
Antony Dovgal
49ec971d85
add brackets and clarity
2006-03-14 15:14:59 +00:00
Ilia Alshanetsky
24d06926d4
MFB51: Fixed offset/length parameter validation in substr_compare() function.
2006-03-14 14:55:27 +00:00
Ilia Alshanetsky
fef63cd5e5
MFB51: Added overflow checks to wordwrap() function.
2006-03-13 14:37:32 +00:00
Pierre Joye
bb1ec86f9d
- remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
...
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Andrei Zmievski
da831e6e0c
Fix protos to use 'string' for parameters that can be either binary or
...
unicode.
2006-03-06 21:49:21 +00:00
Dmitry Stogov
b86007f0e1
ZTS fix
2006-03-03 08:50:25 +00:00