Commit Graph

16298 Commits

Author SHA1 Message Date
Andrei Zmievski
676a3cf46e Use RETVAL_ASCII_STRINGL() here. 2005-08-19 17:53:03 +00:00
Dmitry Stogov
90393d675f Unicode support 2005-08-19 13:20:16 +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
b0e24970bb Unicode support cleanup 2005-08-19 10:54:26 +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
foobar
dde3f89dd4 Nuked EOL from error message 2005-08-18 12:56:36 +00:00
foobar
b385e0ad39 Nuke EOLs from error messages 2005-08-18 12:54:32 +00:00
foobar
98ce7bf37b - Removed EOL from error message 2005-08-18 12:40:17 +00:00
foobar
4985dd8da3 - Removed EOLs from error messages 2005-08-18 12:37:24 +00:00
Dmitry Stogov
3658f1fb7b Unicode support 2005-08-18 11:47:03 +00:00
Dmitry Stogov
474ff091a2 var_export() should escape \ and ' characters. 2005-08-18 11:13:50 +00:00
Dmitry Stogov
e56f9d2eea Unicode support 2005-08-18 07:16:52 +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
foobar
cbb14bec35 Fix ZTS build 2005-08-17 17:02:46 +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
0df66e7eaa Unicode support 2005-08-17 14:16:05 +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
f4ea6b0656 Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault) 2005-08-17 11:57:10 +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
Zeev Suraski
63c6feaff7 Add SoapClient::__setSoapHeaders() 2005-08-17 07:04:50 +00:00
Ilia Alshanetsky
e7ad6720fa Provide a common handler for "close".
Macro the name validation.
2005-08-16 23:10:36 +00:00
Marcus Boerger
5085c21d7e - TSRM Fix 2005-08-16 20:22:33 +00:00
Marcus Boerger
4a43e9c812 - TSRM Fix 2005-08-16 20:15:21 +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
Andrei Zmievski
c79fbfe6f3 And here 2005-08-16 19:43:23 +00:00
Andrei Zmievski
b477936661 And here. 2005-08-16 18:22:22 +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
Dmitry Stogov
27f39c6826 Unicode support 2005-08-16 16:29:16 +00:00
Dmitry Stogov
d0944d74f4 Unicode support 2005-08-16 15:09:51 +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
Antony Dovgal
760313346a eliminate compile warning 2005-08-15 23:01:42 +00:00
Marcus Boerger
a24a21ecf0 - No c comment (+ old non unicode way not needed any longer) 2005-08-15 19:16:30 +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
Rob Richards
bbe63287e7 Fixed bug #34103 (line numbering not maintained in dom document) 2005-08-15 17:13:15 +00:00
Dmitry Stogov
82a504721e Unicode support 2005-08-15 16:13:02 +00:00
Ilia Alshanetsky
7cd5109184 input validation. 2005-08-15 16:01:43 +00:00
Dmitry Stogov
a655a60999 Fixed memory leak 2005-08-15 14:41:31 +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
Ilia Alshanetsky
383673b508 Fixed build. 2005-08-14 20:24:34 +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
foobar
4414846b18 fix protos 2005-08-14 02:03:02 +00:00
foobar
a8cf2db6dd Missed some "de" to "un" changes 2005-08-14 01:17:52 +00:00
foobar
f73c6be9b7 - consistency fix, part 1/inf 2005-08-14 00:46:51 +00:00
Marcus Boerger
b3b53b6640 - ntive is better than standard (Andrei) 2005-08-13 21:18:47 +00:00
Wez Furlong
77b183386c unicode enable COM parameters (but not method/property names yet) 2005-08-13 19:03:58 +00:00
Wez Furlong
57ae2f99b7 Fixup config.w32.
Implement unicode_decode() and unicode_encode(), as described in README.UNICODE.

Still need to decide how to handle errors here, since there is no error return,
and a conversion error is not necessarily fatal.
2005-08-13 13:43:31 +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
Wez Furlong
45412770a2 sizeof(time_t) !== sizeof(int)
also, sizeof(timelib_sll) != sizeof(int)

We get loads of truncation errors int this code when we assign 64 values into smaller ints.
2005-08-12 23:46:42 +00:00
Wez Furlong
f6276a2b8a zts fixes 2005-08-12 23:32:31 +00:00
Antony Dovgal
d09b1b1e89 shut up warnings 2005-08-12 20:58:28 +00:00
Antony Dovgal
df39154c83 nuke unused variables 2005-08-12 20:58:05 +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
96a24404ce Unicode support 2005-08-12 14:57:58 +00:00
Sebastian Bergmann
52b001cc05 ZTS fixes. 2005-08-12 14:08:28 +00:00
Dmitry Stogov
369d59c20b Fixed str_repeat() bug 2005-08-12 13:41:15 +00:00
Dmitry Stogov
e1627558ed Unicode support 2005-08-12 13:09:58 +00:00
Dmitry Stogov
3e7ab37d9f Unicode support 2005-08-12 12:59:20 +00:00
Dmitry Stogov
f39c77dda0 Fixed SIGSEGV 2005-08-12 12:14:31 +00:00
Dmitry Stogov
21c1109e0c Unicode support 2005-08-12 11:29:33 +00:00
Sebastian Bergmann
6b98cc4ef5 Patch by Michael Wallner, signed off by Edin Kadribasic. 2005-08-12 10:10:41 +00:00
foobar
3ed4aee952 - Some minor fixes 2005-08-12 09:10:04 +00:00
Sebastian Bergmann
6ad189f82a ZTS fixes. 2005-08-12 05:58:02 +00:00