Ilia Alshanetsky
146517684d
Fixed possible GLOBALS variable override when register_globals are ON.
...
Fixed possible register_globals toggle via parse_str().
2005-09-28 22:31:29 +00:00
Rolland Santimano
c775c4cf83
- Updated substr_replace() to use:
...
- zend_get_unified_string_type()/convert_to_explicit_type() for type conversion
- u_countChar32() for counting codepoints
2005-09-28 14:58:31 +00:00
Rolland Santimano
227791e5af
- Unicode impl of {add,strip}slashes()
2005-09-28 09:22:08 +00:00
Ilia Alshanetsky
200d5924cf
Allow substr_compare() to take a negative offset to facilitate start of the
...
comparison from the end of string.
2005-09-26 23:08:10 +00:00
Ilia Alshanetsky
6e37a621f8
Fixed bug #34321 (Possible crash in filter code).
2005-09-25 13:26:19 +00:00
Edin Kadribasic
c752d6b2ad
MFB: Allow php extensions to use php_escape_shell_cmd() and php_escape_shell_arg(), needed for mbstring
2005-09-24 15:22:57 +00:00
Dmitry Stogov
af0dd442f3
Fixed memory corruption
2005-09-21 15:54:42 +00:00
Dmitry Stogov
18c1c3a82f
Allow fopen() make HTTPS requests throug HTTP proxies
2005-09-21 15:04:48 +00:00
Johannes Schlüter
01f01cdb48
- Remove HTML fragments from phpcredits() in CLI mode
2005-09-20 22:17:34 +00:00
Ilia Alshanetsky
a383bd062c
Make key() and current() take argument by value.
2005-09-13 13:22:49 +00:00
Dmitry Stogov
03c6efab67
Additinal fix for bug #34277 (array_filter() crashes with references and objects)
2005-09-12 09:58:35 +00:00
Derick Rethans
161777af26
- Reimplement SORT_LOCALE_STRING with ICU locales.
2005-09-12 09:53:23 +00:00
Dmitry Stogov
f4a3454c52
Fix for exceptions in __sleep()
2005-09-12 07:14:54 +00:00
Rolland Santimano
05e365bab3
- str_pad(): Use u_countChar32() for codepoint counting, eumalloc/eurealloc() for Unicode mallocs.
2005-09-09 19:07:18 +00:00
Derick Rethans
9d04a8e369
- Make ord() work on binary strings too.
2005-09-08 14:07:40 +00:00
Dmitry Stogov
b0b0f8147d
Fixed craches in substr_replace()
2005-09-08 12:40:01 +00:00
Dmitry Stogov
49c3b14f53
Unicode support for PHP constants
2005-09-08 11:10:34 +00:00
Rolland Santimano
a441e78984
- Unicode impl of substr_replace()
2005-09-08 05:05:36 +00:00
Dmitry Stogov
18e259480e
Fixed unicode support for substr_count()
2005-09-07 07:00:03 +00:00
Rolland Santimano
8404034552
Pointer arithmetic with char * rather than void *
2005-09-05 16:37:45 +00:00
foobar
7036ac440c
touch
2005-09-05 16:20:56 +00:00
foobar
80079e61a5
- Fixed bug #34311 (unserialize() crashes with characters above 191 dec)
2005-09-05 16:19:35 +00:00
Rolland Santimano
8d5d2125d0
- Unicode impl of str_pad()
2005-09-05 10:55:35 +00:00
Dmitry Stogov
176a76dbec
MFH
2005-09-01 13:03:48 +00:00
Dmitry Stogov
cbd1c89e81
Fixed bug #34277 (array_filter() crashes with references and objects)
2005-09-01 11:58:41 +00:00
foobar
39e0c382df
Update credits
2005-08-31 15:01:13 +00:00
Ilia Alshanetsky
50fb7a8261
Added optional parameter to http_build_query() to allow specification of
...
string separator.
2005-08-31 01:19:40 +00:00
Dmitry Stogov
a3b7eb2284
Fixed gcc 4 compatibility
2005-08-29 06:51:14 +00:00
foobar
bc1f800a72
- Fixed bug #34284 (CLI phpinfo showing html on _SERVER["argv"])
2005-08-28 01:02:54 +00:00
Rolland Santimano
c7ad26fbf4
- Unicode impl of substr_count()
2005-08-27 19:14:05 +00:00
Rolland Santimano
c81d6d6cfd
- Updated strrev() to handle base+combining sequences
2005-08-26 10:21:07 +00:00
Ilia Alshanetsky
c1e661ce70
MFH: Fixed bug #34214 (base64_decode() does not properly ignore whitespace)
2005-08-26 03:32:53 +00:00
foobar
36ee721519
Test for bug #34214
2005-08-23 21:39:39 +00:00
Andrei Zmievski
2a8a18b22c
Fix verbosity for var_inspect().
2005-08-23 17:22:54 +00:00
Dmitry Stogov
8f6f97a77d
Unicode support
2005-08-23 12:53:31 +00:00
Dmitry Stogov
f4b8f4e958
Unicode support cleanup
2005-08-23 09:33:46 +00:00
Dmitry Stogov
641e6f11e4
Now fread() returns bool(false) on error instead of empty string
2005-08-22 16:42:39 +00:00
Dmitry Stogov
e404ee456b
Fixed unicode support for ltrim()
2005-08-22 14:14:10 +00:00
Dmitry Stogov
6b622046dc
zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string).
2005-08-22 12:22:16 +00:00
Andrei Zmievski
23086f5f1c
Unicode support for ord() and chr().
2005-08-19 22:00:21 +00:00
Andrei Zmievski
676a3cf46e
Use RETVAL_ASCII_STRINGL() here.
2005-08-19 17:53:03 +00:00
Rolland Santimano
973e98f51e
- Unicode capable impl() of strrev()
2005-08-19 10:59:19 +00:00
Dmitry Stogov
80079885bb
Quick fix (API was changed)
2005-08-19 10:55:05 +00:00
Dmitry Stogov
2b5ebdde1d
ZTS fix
2005-08-19 07:49:41 +00:00
Dmitry Stogov
974b209f78
ZTS fix
2005-08-19 07:26:13 +00:00
Andrei Zmievski
fd05d40cbe
Rework range() to be able to work on binary strings and also on Unicode
...
code points. Binary strings are not interpreted as numeric.
2005-08-18 22:51:46 +00:00
Andrei Zmievski
0b036a8fdc
Use u_totitle() instead of u_toupper() in ucwords().
2005-08-18 22:37:22 +00:00
Dmitry Stogov
74dafa95d1
Unicode support for extract()
2005-08-18 15:14:08 +00:00
foobar
03cec74a0d
Nuked EOLs from error messages
2005-08-18 13:34:04 +00:00
Dmitry Stogov
474ff091a2
var_export() should escape \ and ' characters.
2005-08-18 11:13:50 +00:00
Dmitry Stogov
704b4d7b61
Fixed tests
2005-08-18 06:32:39 +00:00
Rolland Santimano
fd4e6da642
- Removed 'proto' from description of internal funcns: ucfirst()/ucwords()
2005-08-18 05:53:46 +00:00
Rolland Santimano
412dac1576
Unicode-capable impl of ucwords()
2005-08-17 20:29:00 +00:00
Andrei Zmievski
202bb697fd
Fix bin2hex() to work on binary data and return strings of correct type.
2005-08-17 17:39:04 +00:00
Rolland Santimano
ed370daef5
Unicode impl of ucfirst()
2005-08-17 17:33:19 +00:00
Dmitry Stogov
263d919a20
Unicode support for range()
2005-08-17 15:12:03 +00:00
Dmitry Stogov
21c6c8c8fe
Proper handling of unicode strings with \0 in the middle
2005-08-17 15:11:41 +00:00
Dmitry Stogov
6d62ccc769
Unicode support
2005-08-17 14:01:06 +00:00
Dmitry Stogov
48def9a6ad
Unicode support
2005-08-17 13:10:04 +00:00
Dmitry Stogov
3509630024
trim() should accept objects with __toString() method
2005-08-17 11:36:32 +00:00
Rolland Santimano
c98838037e
php_u_trim_range(): Alloc UChar32 units rather than UChar
2005-08-17 10:26:02 +00:00
Dmitry Stogov
8c63822f0d
Fixed implode() bugs
2005-08-17 07:59:31 +00:00
Rolland Santimano
616089e772
Updated implode() impl as per Andrei's comments
...
[http://news.php.net/php.cvs/33457 ]
2005-08-17 07:14:12 +00:00
Marcus Boerger
5085c21d7e
- TSRM Fix
2005-08-16 20:22:33 +00:00
Andrei Zmievski
06c3c85e19
md5() and md5_file() should return binary strings when raw_output is
...
set.
2005-08-16 19:45:00 +00:00
Derick Rethans
1ee41e0d92
- Fixed a couple of bugs in the new smart_str macros, and allow them to
...
allocate two extra bytes (so that we can pad them with two \0's for UTF-16)
- Fixed usage of smart_str's in the PAD and INS_STRING macros.
2005-08-16 18:02:41 +00:00
Antony Dovgal
5adc3ce7c6
nuke unused vars
2005-08-16 16:57:59 +00:00
Ilia Alshanetsky
b3d7ae9399
Fixed bug #34148 (+,- and . not supported as parts of scheme).
2005-08-16 14:10:13 +00:00
Rolland Santimano
3b4b22a8fc
Unicode capable impl of implode()
2005-08-16 12:04:13 +00:00
Dmitry Stogov
f79fed6286
Unicode support
2005-08-16 10:18:43 +00:00
Dmitry Stogov
7b7a4aac86
Unicode support
2005-08-16 09:25:04 +00:00
Dmitry Stogov
238a40418b
Unicode support
2005-08-16 09:11:00 +00:00
Rolland Santimano
bc87019a80
Updated calls to php_trim() to provide arg for returned string type
2005-08-16 06:04:59 +00:00
Rolland Santimano
c1b8eda121
php_trim() takes extra arg to determine string type to be returned
2005-08-16 06:02:56 +00:00
Ilia Alshanetsky
99dd2d008f
Input validation part 2.
2005-08-16 00:25:21 +00:00
Ilia Alshanetsky
3ee4d80fc3
MFH: Chunk the output
2005-08-15 23:24:47 +00:00
Johannes Schlüter
c5d862c254
- Fix leak with explode of empty unicode string
2005-08-15 19:12:59 +00:00
Dmitry Stogov
909e0a1c4e
Unicode support
2005-08-15 17:29:07 +00:00
Ilia Alshanetsky
7cd5109184
input validation.
2005-08-15 16:01:43 +00:00
Dmitry Stogov
08fe0d1da3
Test engine is improved to support unicode mode
2005-08-15 14:37:55 +00:00
Dmitry Stogov
7061405249
Fixed trim()'s memory leak in unicode mode
2005-08-15 08:11:35 +00:00
Dmitry Stogov
0bdfac1169
Tests are fixed according to new var_dump()/pront_r() format (to pass in non-unicode mode)
2005-08-15 07:55:41 +00:00
Marcus Boerger
bc4202473e
- Simplify and make work in all modes
2005-08-14 21:26:01 +00:00
Marcus Boerger
8b9c131f55
- Initial support of easy way to generate unicode strings: [v]uspprinf()
...
# Same semantics as [v]spprintf, only it prints unicode strings instead of
# native strings. Atm it has a little problem since it length doesn't take
# the difference between UTF-16 code points vs units into account. But as
# long as no 4 byte codes are involved it should already run everything.
2005-08-14 17:14:42 +00:00
Marcus Boerger
cdd5e86cc2
- If prop_name is printed as unicode then class_name needs to be treated
...
in the exact same manner
2005-08-14 15:18:46 +00:00
Marcus Boerger
a19585eb49
- Show classname very needed
...
- No 3rd " which doesn't help parsing
# Does the class name need to be printed as u"<name>" ?
2005-08-14 15:08:38 +00:00
Marcus Boerger
b3b53b6640
- ntive is better than standard (Andrei)
2005-08-13 21:18:47 +00:00
Wez Furlong
227a6d154b
could have sworn that I did this already
2005-08-13 12:33:00 +00:00
Marcus Boerger
ff1d752b81
- IS_STRING does not necessarily mean ascii so 'standard' is better
...
# Maybe we call them legacy strings
2005-08-13 10:19:31 +00:00
Marcus Boerger
acca0d32b0
Add is_unicode(), is_binary() and is_buffer()
2005-08-13 10:16:04 +00:00
Wez Furlong
c2909b377b
vs.net 2005 introduces 64-bit time_t.
...
I can't say that I think this is a great idea, but it does highlight a couple
of dodgy areas where we assume that ints and longs are the same thing as
time_t's. Let's try to ensure that we declare structure fields and function
parameters with the correct type when we're talkingabout time_t's, to avoid
possibly nasty problems with passing the wrong sized thing around.
2005-08-13 02:23:29 +00:00
Wez Furlong
8b7d070358
what they totally screw up on one hand, MS compilers almost compensate with on
...
the other.
2005-08-12 23:59:59 +00:00
Antony Dovgal
363d0aa028
fix fgetc() & compile warnings
2005-08-12 19:27:45 +00:00
Antony Dovgal
0714953a44
change ["var_name":private"] -> ["var_name:private"]
...
* I'm also not sure we want ["var_name:public"], but I left it as is.
2005-08-12 18:54:18 +00:00
Antony Dovgal
969c533b83
fix compile warnings
2005-08-12 18:03:55 +00:00
Antony Dovgal
e458e45486
fix array_merge() adding one superfluous byte to the key
2005-08-12 16:49:20 +00:00
Antony Dovgal
079a748d3c
fix php_u_trim() and compile warnings
2005-08-12 16:46:38 +00:00
Dmitry Stogov
369d59c20b
Fixed str_repeat() bug
2005-08-12 13:41:15 +00:00
Sebastian Bergmann
6b98cc4ef5
Patch by Michael Wallner, signed off by Edin Kadribasic.
2005-08-12 10:10:41 +00:00
Sebastian Bergmann
6ad189f82a
ZTS fixes.
2005-08-12 05:58:02 +00:00