Hannes Magnusson
a24552497f
Fixed test
2006-06-14 19:47:30 +00:00
Ilia Alshanetsky
4ccab9d5ab
MFB: Fixed ZTS build
2006-06-11 20:47:55 +00:00
Hannes Magnusson
53d262c04d
Nuke unused var
2006-06-11 20:33:29 +00:00
Ilia Alshanetsky
2863d56d8a
MFB: Fully print array() in phpinfo().
2006-06-11 16:27:41 +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
Andrei Zmievski
a871adf6bb
MFB
2006-06-03 18:58:40 +00:00
Michael Wallner
231ad17475
- explicit usage of TS macros
...
# this could have been raised a lot earlier
2006-06-03 11:19:44 +00:00
Michael Wallner
be96a46e96
- fix encoding
2006-06-02 20:09:22 +00:00
Michael Wallner
4ce0141713
- new output control code
...
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
# - improve existing output handlers
# - move zlib.output_compression cruft from SAPI.c to zlib.c
# - output_encoding handling was ambigious, resp. is undefined yet
# - more tests
2006-06-02 19:51:43 +00:00
Ilia Alshanetsky
c270a8e627
MFB: fixed compiler warning
2006-06-01 22:42:53 +00:00
Antony Dovgal
01bc25e4b6
suppress_errors is used only on Win32, no need to look for it on other systems
2006-06-01 14:03:38 +00:00
Antony Dovgal
3e5407b16d
nuke unused variable
2006-06-01 13:45:16 +00:00
Antony Dovgal
12a2d02b99
fix tests
2006-06-01 13:04:10 +00:00
Sara Golemon
a8ca40564c
Minor fixes (bjori)
2006-05-30 19:05:21 +00:00
Ilia Alshanetsky
1aadb29d51
MFB: Added memory_get_peak_usage() function for retrieving peak memory
...
usage of a PHP script.
2006-05-30 14:51:54 +00:00
Antony Dovgal
11b66c6cec
add test
2006-05-29 10:42:37 +00:00
Antony Dovgal
d5f90c48c7
initialize srcstream
...
use different variable in local scope
2006-05-29 10:42:10 +00:00
Antony Dovgal
f59d444d8a
prevent resource leaking when passing invalid stream resource as second argument
2006-05-29 10:23:53 +00:00
Johannes Schlüter
40da89d6b9
- Fix str_replace with unicode strings as key
2006-05-28 21:09:58 +00:00
Marcus Boerger
875caa4870
- MFB
2006-05-25 10:50:53 +00:00
Ilia Alshanetsky
940ed4a426
MFB: Fixed bug #37563 (array_key_exists performance is poor for &$array).
2006-05-24 23:14:36 +00:00
Marcus Boerger
c627a4819b
- Add more tests from Ligaya Turmelle
2006-05-23 23:45:39 +00:00
Marcus Boerger
47343620cb
- Add new test
2006-05-23 22:26:55 +00:00
Marcus Boerger
a4d6c5a6f0
- Handle corrupt base64 data in data: url
2006-05-21 13:35:06 +00:00
Marcus Boerger
e7d381f7b6
- Drop unneccesary check and change to safe_emalloc
2006-05-21 13:25:16 +00:00
Hartmut Holzgraefe
205bdeda41
Name change: php_get_tmpdir() renamed to sys_get_temp_dir()
2006-05-19 10:44:34 +00:00
Antony Dovgal
bd6125c312
add new tests by Ligaya Turmelle
2006-05-19 07:44:58 +00:00
Dmitry Stogov
ab9e070bbf
Optimized zend_try/zend_catch macroses (eliminated memcpy())
2006-05-19 06:11:02 +00:00
Ilia Alshanetsky
1dd395b27f
MFB: Fixed bug #37505 (touch() truncates large files).
2006-05-19 02:51:18 +00:00
Ilia Alshanetsky
1226d31151
MFB: Make filters without a resource throw E_RECOVERABLE_ERROR rather then
...
E_ERROR
2006-05-16 14:12:52 +00:00
Antony Dovgal
17c98844d5
new mkdir tests
2006-05-16 13:07:07 +00:00
Marcus Boerger
3856d8da6d
- Add strict compliant RFC2397 support (no //)
2006-05-14 18:35:40 +00:00
Marcus Boerger
3b66ab74f9
- RFC2397 add decoding
...
# done (need to decide whether all examples shouldl work or specs are
# followed)
2006-05-14 01:39:24 +00:00
Marcus Boerger
73069100fd
- Change to use dedicated stream ops
2006-05-14 00:45:27 +00:00
Marcus Boerger
4f29479a22
- RFC 2397 meta data handling
2006-05-14 00:40:53 +00:00
Marcus Boerger
29c0f5bede
- Initial RFC2397 support
...
# decoding is missing right now
2006-05-13 17:53:01 +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
Hartmut Holzgraefe
daa5febadf
Added php_get_tmpdir() function that returns the default directory for
...
temporary files (as requested in bug #35380 )
2006-05-06 09:59:02 +00:00
Sara Golemon
d77a8562c2
Unicode Updates:
...
file() now unicode ready
get_meta_tags() updated for FS encoding, but content is still non-unicode
2006-05-02 18:23:32 +00:00
Marcus Boerger
dcc51c1977
- WS
2006-05-01 15:59:56 +00:00
Frank M. Kromann
954199c9fb
More ZSTR() fixes
2006-04-29 14:53:26 +00:00
Frank M. Kromann
e6e2754439
Remove ZSTR() from stream macros. Calling function must apply this macro
2006-04-28 19:03:58 +00:00
Antony Dovgal
cf31c2f51a
remove nonexistent tag
2006-04-25 12:50:14 +00:00
Antony Dovgal
7bde7e87eb
MF51: fix possible substr_compare() crash
...
add new tests
2006-04-25 12:49:04 +00:00
Antony Dovgal
8a434f5df0
merge fix for #37158 into HEAD
...
add test
2006-04-22 23:49:39 +00:00
Frank M. Kromann
1791befa0c
Fix Win32 build. NULL_ZSTR was converted to ZSTR(NULL_ZSTR)
2006-04-22 10:39:31 +00:00
Antony Dovgal
acf25d1aac
fix typo (see #35900 )
2006-04-19 08:43:05 +00:00
Sara Golemon
ea106887a7
Silence compiler warnings
2006-04-18 19:10:12 +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
Sara Golemon
04ecb8b1fd
Fix 'soft line break' handling in convert.quoted-printable-decode
2006-04-17 19:25:48 +00:00
Ilia Alshanetsky
78b81f2591
MFB51: fixed typo
2006-04-16 17:41:26 +00:00
Ilia Alshanetsky
53ab6c0920
MFB51: Fixed bug #37045 (Fixed check for special chars for http redirects).
2006-04-16 16:55:25 +00:00
Antony Dovgal
8c086bcf8d
make this test to work on all systems
2006-04-14 20:30:47 +00:00
Sara Golemon
1e9a9d596b
MFB (r-1.409.2.6) copy() should not disrespect open_basedir on source file
2006-04-14 17:44:56 +00:00
Antony Dovgal
becb273c16
MF51: fix #37077 (stream_socket_server() leaks when the port is not allowed)
2006-04-14 10:01:34 +00:00
Sara Golemon
d05836890b
Preserve full name of filter for use in stream_get_meta_data()
2006-04-13 04:41:08 +00:00
Sara Golemon
0b84c73635
Allow http:// wrapper to automatically apply correct unicode.from.* filter based on content-type header
2006-04-12 22:40:56 +00:00
Antony Dovgal
a44fe39f40
fix test title
2006-04-12 22:21:13 +00:00
Johannes Schlüter
e7747e8d74
- Fix bug #37060 (Type of retval of Countable::count() is not checked)
2006-04-12 19:29:52 +00:00
Ilia Alshanetsky
490609ffc4
MFB51: fixed test
2006-04-10 23:48:38 +00:00
foobar
6af3218f81
more cleanup (lingering ini settings which do not exist anymore, etc.)
2006-04-10 15:09:15 +00:00
foobar
a6a3c9059d
- Fixed bug #36909 (ld: Undefined symbols: _lchown)
2006-04-10 11:56:04 +00:00
foobar
0e8b5470be
fix credits
2006-04-10 09:46:32 +00:00
Ilia Alshanetsky
f58ef85af5
MFB51: Fixed bug #36875 (is_*() functions do not account for open_basedir).
2006-04-09 17:58:02 +00:00
Sara Golemon
5a9feaa6b1
Plug leak which occurs in unicode mode
2006-04-06 20:05:43 +00:00
Sara Golemon
b6f62cabff
Silence false positives on test results
2006-04-06 20:03:27 +00:00
Sara Golemon
78d1f7ea40
Silence false positives in test failures
2006-04-06 19:51:36 +00:00
Antony Dovgal
4e85f445f0
add test
2006-04-05 12:29:35 +00:00
Ilia Alshanetsky
1df7d39695
Fixed bug #36957 (serialize() does not handle recursion).
2006-04-05 02:28:39 +00:00
Derick Rethans
1bad8fea12
- No need to have this one twice here... (Thanks Steph)
2006-04-04 06:04:49 +00:00
Ilia Alshanetsky
a24cb8773f
MFB51: Fixed an unlikely, but possible memory leak.
2006-04-03 13:46:35 +00:00
Antony Dovgal
0b0fff07b2
fix spelling in error messages:
...
greater/less thEn -> greater/less thAn
2006-04-03 09:14:50 +00:00
Sara Golemon
53450fae8a
Update tests for working with unicode
2006-04-03 05:57:40 +00:00
Sara Golemon
b2523b29b8
Update filename handling and mark various functions for unicode safety
2006-04-01 00:05:31 +00:00
Sara Golemon
fd606a8d78
Add API hooks and unicode.filesystem_encoding for handling unicode
...
conversions of filename entries.
Normal path conversions will simply use this converter,
Certain other protocols (such as http) which specify a
required character set (utf8), may override the conversion
by defining a path_encode() and/or path_decode() wrapper ops method.
2006-03-31 22:51:37 +00:00
Antony Dovgal
ec376e510c
MF51: fix compile failure with old GCC (see bug #36931 )
2006-03-31 11:11:26 +00:00
Antony Dovgal
4f1da95828
fix TSRM build
2006-03-30 19:59:51 +00:00
Ilia Alshanetsky
0f48af3cec
MFB51: Fixed XSS inside phpinfo() with long inputs.
2006-03-30 19:16:28 +00:00
Sara Golemon
51b9a0f269
Make php_stream_copy_to_mem() unicode aware and
...
update userspace function file_get_contents().
Note: fgc()'s second parameter (use_include_path) has been changed
to be a bitmask "flags" parameter instead.
For the most commonly used values (TRUE, 1) this will continue functioning
as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1.
The impact to other values should be noted in the migration6 guide.
This change makes it possible to allow fgc() to return binary file
contents (default) or unicode transcoded contents (using FILE_TEXT flag).
2006-03-30 00:22:51 +00:00
Sara Golemon
1c97a0d78c
Update php_stream_passthru() to handle unicode data.
...
This updates userspace functions fpassthru() and readfile()
UG(output_encoding) is used by php_stream_passthru() to translate
unicode stream contents back to an outputable character set.
Note: readfile()'s second parameter (use_include_path) has been changed
to be a bitmask "flags" parameter instead.
For the most commonly used values (TRUE, 1) this will continue functioning
as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1.
The impact to other values should be noted in the migration6 guide.
This change makes it possible to allow readfile() to output binary file
contents (default) or unicode transcoded contents (using FILE_TEXT flag).
2006-03-29 22:52:24 +00:00
Andrei Zmievski
d57e79782e
Bug!
2006-03-29 05:56:06 +00:00
Sara Golemon
30a2bd1d11
Another (and hopefully last) major streams commit.
...
This moves unicode conversion to the filter layer
(rather than at the lower streams layer)
unicode_filter.c has been moved from ext/unicode to main/streams
as it's an integral part of the streams unicode conversion process.
There are now three ways to set encoding on a stream:
(1) By context
$ctx = stream_context_create(NULL,array('encoding'=>'latin1'));
$fp = fopen('somefile', 'r+t', false, $ctx);
(2) By stream_encoding()
$fp = fopen('somefile', 'r+');
stream_encoding($fp, 'latin1');
(3) By filter
$fp = fopen('somefile', 'r+');
stream_filter_append($fp, 'unicode.from.latin1', STREAM_FILTER_READ);
stream_filter_append($fp, 'unicode.to.latin1', STREAM_FILTER_WRITE);
Note: Methods 1 and 2 are convenience wrappers around method 3.
2006-03-29 01:20:43 +00:00
Ilia Alshanetsky
75c7f810ea
MFB51: Check 2nd parameter of tempnam() against path components.
2006-03-27 23:41:05 +00:00
Andrei Zmievski
e85495f6f1
Fix UErrorCode check.
2006-03-27 23:05:38 +00:00
Andrei Zmievski
d761aa7eb2
Typo.
2006-03-27 22:16:53 +00:00
Andrei Zmievski
626be75d6c
Make a UTODO note.
2006-03-27 21:19:12 +00:00
Andrei Zmievski
a8c291f8fe
Proto updates.
2006-03-27 19:24:18 +00:00
Dmitry Stogov
d1d9ce8fed
Test for strtr() with non-ascii encoding
2006-03-27 14:37:14 +00:00
Dmitry Stogov
9d9adb2f35
Unicode support
2006-03-27 14:19:18 +00:00
Dmitry Stogov
c744d73d04
Unicode support
2006-03-27 13:37:47 +00:00
Dmitry Stogov
06cfa710b4
Fixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed test
2006-03-27 10:15:02 +00:00
Dmitry Stogov
bdfa3b1d36
Fixed ZTS build
2006-03-27 06:02:42 +00:00
Ilia Alshanetsky
3bf02bde43
MFB51: Fixed bug #36857 (Added support for partial content fetching to the
...
HTTP streams wrapper).
2006-03-26 17:12:26 +00:00
Derick Rethans
ad6a972de3
- Implemented basic collation support. For some reason "new Collator" gives segfaults when the object's collation resource is used.
...
- The following example shows what is implemented:
<?php
$orig = $strings = array(
'côte',
'cote',
'côté',
'coté',
'fluÃe',
'flüÃe',
);
echo "German phonebook:\n";
$c = collator_create( "de@collation=phonebook" );
foreach($c->sort($strings) as $string) {
echo $string, "\n";
}
echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON
? "With" : "Without", " french accent sorting order\n";
echo "\nFrench with options:\n";
$c = collator_create( "fr" );
$c->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST);
$c->setAttribute(Collator::CASE_LEVEL, Collator::ON);
$c->setStrength(Collator::SECONDARY);
foreach($c->sort($strings) as $string) {
echo $string, "\n";
}
echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON
? "With" : "Without", " french accent sorting order\n";
?>
2006-03-26 11:06:24 +00:00
Sara Golemon
a64789a452
Expand stream_context_create() to allow specifying params
...
as well as options. Ignore the internal name change of the first arg.
The first arg is still for options, the second arg is for actual params.
2006-03-26 04:40:11 +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
Sara Golemon
f67ed7f3d4
Allow bidirectional encoding option via single context param
2006-03-24 22:27:13 +00:00
Sara Golemon
dfc827d108
Fix stream_get_line():
...
Checking type isn't nearly as important as checking nullness...
2006-03-24 21:37:42 +00:00
Sara Golemon
0b2b16e6c7
Update fgetss() for unicode
2006-03-24 21:32:39 +00:00
Sara Golemon
880dd406f2
Add php_stream_get_record_unicde() API call.
...
Update stream_get_line() userspace function to handle unicode streams.
2006-03-24 19:22:24 +00:00
Ilia Alshanetsky
96afde2af7
MFB51:
...
Added myself to PDO and PDO_MySQL credits
Added Wez to PDO_MySQL credits
Added Tony to Q&A team credits
Regenerated the credits file
2006-03-23 18:39:12 +00:00
Antony Dovgal
932c5d9e0e
MF51: prevent segfault when exception is thrown from Countable::count()
2006-03-22 22:06:08 +00:00
Antony Dovgal
a4c6a19335
use set_time_limit(), this test takes forever on AIX
2006-03-22 19:27:28 +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
Ilia Alshanetsky
f7875f813c
MFB51: Fixed bug #36689 (Removed arbitrary limit on the length of syslog
...
messages).
2006-03-21 00:59:41 +00:00
Antony Dovgal
c2eabef473
shutdown syslog module before freeing basic_globals
2006-03-20 23:33:07 +00:00
Antony Dovgal
6901e09492
MF51: fix #36808 (syslog ident becomes garbage between requests)
2006-03-20 23:07:31 +00:00
Antony Dovgal
1df7e13f48
fix #36741 (userstreams testcase have off-by-one error on fseek())
2006-03-20 22:08:59 +00:00
Antony Dovgal
ba1ac82bc9
don't leak memory even though the code is not stable yet
2006-03-20 20:09:20 +00:00
Antony Dovgal
9557d44ed8
fix buffer overrun
2006-03-20 14:10:23 +00:00
Antony Dovgal
2c750d7f84
make the code a bit cleaner - no need for two different checks that are doing effectively the same
2006-03-19 22:12:39 +00:00
Marcus Boerger
792e4d9f4d
- Fix TSRM
2006-03-17 23:14:55 +00:00
Andrei Zmievski
25b95e4250
Make is_string() return TRUE for both Unicode and binary strings.
2006-03-17 23:00:20 +00:00
Andrei Zmievski
a75b8f5f35
Fix compiler errors by using NULL_ZSTR where zstr is expected.
...
# I guess we need to use NULL_ZSTR instead of NULL when passing NULL to
# functions that expect zstr parameter.
2006-03-17 22:52: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
c6b425432a
- Actually make this is_binary() too.
2006-03-17 14:53:57 +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
Dmitry Stogov
86780519d4
Disabled dl(). Now it is enabled only when a SAPI layer registers it explicitly. Only CLI, CGI and EMBED do this.
2006-03-16 16:53:10 +00:00
Dmitry Stogov
9d7ca01c8b
Dropped allow_call_time_pass_reference, the error is maden E_STRICT.
2006-03-16 11:32:00 +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
Derick Rethans
52bec1ea36
- Reduce space in serialization. The first 128 bytes will now use just the
...
character and everything above will use \uXXXX. It seems that unserialize
doesn't work at all yet on the U: element so that I added to my to-do list.
2006-03-15 09:50:47 +00:00
Sara Golemon
df77705572
Switch (zstr) casts to use ZSTR() macro.
2006-03-15 00:28:57 +00:00
Sara Golemon
b576354982
More stream updates.
...
fgets() will work now as will anything which calls one of the
_php_stream_get_line() family of functions.
The one exception here is when the legacy defines are used on a unicode
stream. At the moment they'll simply return NULL, I'll update these
to do sloppy conversion in a bit.
'make (u)test' still doesn't work, but it's a different doesn't work.
2006-03-14 21:15:05 +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
Derick Rethans
f7bfe18307
This makes file_put_contents() work for:
...
<?php
declare(encoding="latin1");
$a = "1234å67890";
file_put_contents( "/tmp/testuc.1", $a);
file_put_contents( "/tmp/testuc.2", (string) $a);
$context = stream_context_create();
stream_context_set_params($context, array( "output_encoding" => "latin1" ) );
file_put_contents( "/tmp/testuc.3", $a, FILE_TEXT, $context);
file_put_contents( "/tmp/testuc.4", (string) $a, FILE_TEXT, $context);
?>
But it still throws a warning on ".3". It's a small design issue that I
didn't want to touch right now.
2006-03-13 15:01:44 +00:00
Ilia Alshanetsky
fef63cd5e5
MFB51: Added overflow checks to wordwrap() function.
2006-03-13 14:37:32 +00:00
Sara Golemon
48798021b5
Refactor streams layer for PHP6.
...
Don't be frightened by the size of this commit.
A significant portion of it is restoring the read buffer semantics back
to what PHP4/5 use. (Or a close aproximation thereof).
See main/streams/streams.c and ext/standard/file.c for a set of
UTODO comments covering work yet to be done.
2006-03-13 04:40:11 +00:00
Dmitry Stogov
cebd9e8f30
Fixed debug_zval_dump() to support private and protected members
2006-03-10 08:43:14 +00:00
Michael Wallner
9656a34cbc
MFB: Fix bug #36656 (http_build_query generates invalid URIs due to use of square brackets)
2006-03-08 22:04:48 +00:00
Ilia Alshanetsky
27e175eef0
So long safe_mode mode.
...
Also removed the magic_quotes configure option, no longer relevant since
the magic is gone :-).
2006-03-08 14:41:45 +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
Ilia Alshanetsky
edd7d2a1df
Fixed bug #36630 (umask not reset at the end of the request).
...
# This needs to be MFHed, but since it requires an API break it has to wait
# until the next minor release.
2006-03-06 14:27:45 +00:00
Derick Rethans
72c9d907d3
- And not here either...
2006-03-05 19:02:11 +00:00
Dmitry Stogov
b86007f0e1
ZTS fix
2006-03-03 08:50:25 +00:00
Andrei Zmievski
c5f6efe367
Fix ucwords() to use full case mapping.
...
# Note that this is different from i18n_strtotitle() which uses
# locale-aware word break iterator. The difference is seen here:
#
# $a = "pouvez-vous";
# var_dump(ucwords($a));
# var_dump(i18n_strtotitle($a));
#
# Outputs:
#
# unicode(11) "Pouvez-vous"
# unicode(11) "Pouvez-Vous"
#
2006-03-02 23:12:33 +00:00
Andrei Zmievski
1751241203
- Update protos for Unicode-upgraded functions
...
- Also fix ucfirst() to use full case mapping, so that ß (sharp s)
maps to 'SS' for example
2006-03-02 20:37:07 +00:00
Dmitry Stogov
c366cc6d1a
Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings
2006-03-02 13:12:45 +00:00
Rob Richards
06a4265712
64-bit fixes - ("make test" now works again on these platforms)
2006-03-01 11:19:35 +00:00
Ilia Alshanetsky
d31641e2d8
Parsers for previous patch
2006-02-28 14:46:29 +00:00
Ilia Alshanetsky
1a3bb9f4bd
MFB51: Fixed bug #36459 (Incorrect adding PHPSESSID to links, which
...
contains \r\n).
2006-02-28 14:45:52 +00:00
Dmitry Stogov
e3b7f3fd0d
Unicode support: MS Visual C compatibility
2006-02-26 11:57:14 +00:00
Rasmus Lerdorf
f16846e685
Binary safety patch from Moriyoshi
2006-02-25 21:30:32 +00:00
Ilia Alshanetsky
a9b90524d5
MFB51: Fixed bug #35900 (stream_select() should warning when tv_sec is
...
negative).
2006-02-23 18:28:37 +00:00
Brian France
2eb346cce0
fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind = 1" seems to work on all systems (bug #36091 )
2006-02-23 03:48:30 +00:00
Dmitry Stogov
5237a40717
Unicode support: fixed serialization of "Serializable"
2006-02-22 14:20:54 +00:00
Dmitry Stogov
ba8069e77e
Unicode support: fixed serealization of "Serializable" and "IncompleteClass"
2006-02-22 13:47:40 +00:00
Dmitry Stogov
84f0adff86
Unicode support: fixed GLOBALS protection
2006-02-22 13:10:32 +00:00
Dmitry Stogov
b029407078
fixed test file
2006-02-22 12:24:02 +00:00
Dmitry Stogov
36002f16c3
Fixed test file
2006-02-22 12:22:07 +00:00
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Ilia Alshanetsky
fca6eecbe9
MFB51: Fixed bug #36458 (sleep() accepts negative values).
2006-02-21 15:32:34 +00:00
Dmitry Stogov
6e6a84129c
Incorrect usage of Z_TYPE() macro
2006-02-20 17:14:18 +00:00
Dmitry Stogov
5fb11bc86e
Fixed memory corruption
2006-02-20 09:38:47 +00:00
Ilia Alshanetsky
a605fd39c4
More safe_mode nuking
2006-02-19 18:20:51 +00:00
Ilia Alshanetsky
c6ba5765be
Nuke safe_mode
2006-02-19 18:19:33 +00:00
Andi Gutmans
1efe984d08
- Get rid of using ENFORCE_SAFE_MODE.
2006-02-19 04:29:42 +00:00
Andi Gutmans
ac1e7362b3
- More safe_mode nuking
2006-02-19 03:07:39 +00:00
Andi Gutmans
e94e25e621
Start nuking safe_mode. Still a lot of work to do...
2006-02-19 00:55:22 +00:00
Antony Dovgal
77b7b56ab0
improve usleep(): use new param parsing API, check for negative values
...
(related to #36410 )
2006-02-16 10:13:23 +00:00
Dmitry Stogov
09ca61c125
Made server wide switch for unicode on/off (according to PDM).
2006-02-13 10:23:59 +00:00
Ilia Alshanetsky
2fb6ce838b
MFB51: Fixed bug #36351 (parse_url() does not parse numeric paths properly).
2006-02-12 16:40:34 +00:00
Pierre Joye
154bb7c6a7
- MFB:
...
- revert last fix
- ensure that we are in 32bit
- do not try to compare the decimal values but hex, php does not have
unsigned integer
2006-02-09 15:48:18 +00:00
Andrei Zmievski
f0a9b2d51b
MFB.
2006-02-07 17:54:52 +00:00
Pierre Joye
6a158cf60d
- MFB: #36306 , crc32() result differs on 32-bit and 64-bit platforms
2006-02-07 00:24:56 +00:00
Antony Dovgal
96543b01ad
initialize variables and reduce the number of warnings
2006-02-06 11:28:20 +00:00
Antony Dovgal
8416426488
fix #36242 (Possible memory corruption in stream_select())
2006-02-01 10:31:26 +00:00
Frank M. Kromann
921498e38b
MFB51 Export symbols that will allow building WDDX as shared object
2006-01-28 06:18:18 +00:00
Pierre Joye
d10b1290b2
- #36185 str_rot13(NULL) crash
2006-01-28 00:13:13 +00:00
Ilia Alshanetsky
b031ac3fe4
MFB51: Fixed bug #36148 (unpack("H*hex", $data) is adding an extra
...
character to the end of the string).
2006-01-26 15:48:15 +00:00
Andrei Zmievski
e7752216f4
Use zend_codepoint_to_uchar() macro.
2006-01-25 00:02:23 +00:00
Andrei Zmievski
0fe1845267
eurealloc() should not be used with UBYTES()
2006-01-24 23:09:43 +00:00
Ilia Alshanetsky
dd68ac4c8c
MFB51: Allow get_headers() to return header information even for non-200
...
responses.
2006-01-20 01:40:48 +00:00
Antony Dovgal
04ad1d1462
fix test
2006-01-19 21:27:15 +00:00
Antony Dovgal
c83190514f
couple of pedantic fixes: "static" should be first
2006-01-18 23:55:27 +00:00
Ilia Alshanetsky
f0b0e2cd19
MFB51: Make get_headers() use the default context.
2006-01-18 14:05:28 +00:00
Dmitry Stogov
227295a4f1
Unicode stuff is changed according to decision maden on PDM.
...
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Antony Dovgal
38b7befa2e
fix typo
2006-01-16 20:41:00 +00:00
Marcus Boerger
2fe859febb
- Fixed bug #36011
2006-01-14 15:22:19 +00:00
Antony Dovgal
b5fd1c0ec3
add missing ifdefs
2006-01-13 13:04:01 +00:00
Pierre Joye
d7772d5203
- MFB: add php_mkdir_ex
2006-01-13 04:10:32 +00:00
Marcus Boerger
679fa69575
- Add stream filter 'consumed' which can restore the stream position when
...
a stream was read or written through a size changing filter.
2006-01-12 19:23:24 +00:00
Hartmut Holzgraefe
f1ffdfdbb3
typo fix
2006-01-12 15:37:56 +00:00
Ilia Alshanetsky
d2397a9301
MFB51: Fixed bug #35916 (Duplicate calls to stream_bucket_append() lead to
...
a crash).
2006-01-10 16:14:45 +00:00
Antony Dovgal
2e43670647
fix memory corruption (HEAD only)
2006-01-10 10:51:39 +00:00
Ilia Alshanetsky
0618bc66e8
MFB51: Fixed test
2006-01-10 03:18:52 +00:00
Antony Dovgal
0b9213d82b
fix tests
2006-01-06 21:21:09 +00:00
Antony Dovgal
16be5ff45b
fix typo
2006-01-05 20:49:28 +00:00
Andrey Hristov
9be53ac7a5
cast and fix a warning
2006-01-04 22:42:17 +00:00
Rob Richards
13048a3cb5
fix win build
2006-01-04 17:34:44 +00:00
Derick Rethans
648e20c1b6
- New implementation of the sunset algorithm. Fixes bugs #33789 , #33671 , #32820
...
and #30937 .
#- Didn't add it to news yet, as we'll merge this to PHP 5.1.x (just need to
# wait for Ilia to approve it for 5.1.2).
2006-01-04 12:57:04 +00:00
Derick Rethans
223aa7294d
- Added the lchown() and lchgrp() functions which change permissions and group
...
permissions on symbolic links.
#- We'll also add this to PHP 5.1.3? or PHP 5.2, so I didn't add it to NEWS.
2006-01-04 12:22:23 +00:00
foobar
399f8ae675
fix build
2006-01-01 17:28:25 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
Ilia Alshanetsky
821e0586df
MFB51: Fixed bug #35817 (unpack() does not decode odd number of hexadecimal
...
values)
2005-12-28 20:56:22 +00:00
Antony Dovgal
64d9c70e4c
tweak the fix
2005-12-27 23:27:02 +00:00
Antony Dovgal
38722a19c1
add test for #35821
2005-12-27 22:35:18 +00:00
Antony Dovgal
41973d8969
MF51: fix #35821 (array_map() segfaults when exception is throwed from the callback)
2005-12-27 22:33:40 +00:00
Antony Dovgal
fbe210b8b5
add new test
2005-12-26 15:15:10 +00:00
Antony Dovgal
1c7661a301
MFB: fix #35781 (stream_filter_append() can cause segfault)
2005-12-23 15:05:42 +00:00
Antony Dovgal
ddf87742ec
change -o to || to be more portable
2005-12-22 11:02:51 +00:00
Antony Dovgal
8f5f3d8408
MFB: add test for #35740
2005-12-20 09:52:05 +00:00
foobar
f5318a9530
touch with re2c 0.9.11
2005-12-18 19:54:50 +00:00
Marcus Boerger
25052ff3af
- MFB
2005-12-16 23:21:38 +00:00
Marcus Boerger
927016e154
- MFB Fix zend_is_callable() usage
2005-12-16 22:26:43 +00:00
Antony Dovgal
c9ae9cd47e
MF51: fix #35713 (getopt() returns array with numeric strings when passed options like '-1')
...
TODO:
make getopt() unicode aware
2005-12-16 20:50:38 +00:00
Antony Dovgal
f39eed623d
MF51: fix test, add new one
2005-12-16 15:52:54 +00:00
Antony Dovgal
90b95eeb23
fix #35690 (pack() tries to allocate huge memory block when packing float values to strings)
2005-12-15 22:14:25 +00:00
Antony Dovgal
41fad0ad77
fix spelling and #35665
2005-12-14 00:54:04 +00:00
Ilia Alshanetsky
a13a4487a4
MFB51: Fixed bug #35629 (crash in http:// wrapper on multiple redirects).
2005-12-12 05:04:43 +00:00
Antony Dovgal
749c6e3016
fix #35617
...
no need to separate zvals twice
2005-12-09 22:26:39 +00:00
Antony Dovgal
b0a7b43a55
MF51: fix wrong macro usage
2005-12-09 18:53:54 +00:00
Dmitry Stogov
7810872573
Support for 64-bit platforms
2005-12-09 13:41:06 +00:00
Ilia Alshanetsky
331b7d7b27
MFB51: Fixed bug #35594 (Multiple calls to getopt() may result in a crash).
2005-12-08 03:25:42 +00:00
Ilia Alshanetsky
34701f23eb
MFB51: Fixed bug #34359 (Possible crash inside fopen http wrapper).
2005-12-08 02:53:34 +00:00
Dmitry Stogov
ce89a8831e
Fixed tests
2005-12-07 15:19:30 +00:00
Dmitry Stogov
25d6294650
Fixed test
2005-12-07 14:32:42 +00:00
Dmitry Stogov
5bb71a7871
Fixed sleep() magic method with private and protected members
2005-12-07 09:41:22 +00:00
Sara Golemon
d34df75ee1
Block potential segfault.
...
Context option type not checked for "user_agent","header", and "content"
2005-12-06 19:13:27 +00:00
foobar
0ac2b74b0b
- Nuke php3 legacy
2005-12-05 22:53:34 +00:00
foobar
c297b31a52
- Nuke php3 legacy
2005-12-05 22:21:12 +00:00
Ilia Alshanetsky
9e9a8eb837
MBF51: load proper header file
2005-12-05 04:23:17 +00:00
Ilia Alshanetsky
5e2bdfcfcc
MFB51: Added tests for new parse_url() and http_build_query() functionality.
2005-12-04 17:58:53 +00:00
Dmitry Stogov
feaa2501d0
Fixed bug #34729 (Crash in ZTS mode under Apache)
2005-12-01 11:49:51 +00:00
Ilia Alshanetsky
667a9b9bce
MFB51: Fixed bug #35425 (idate() function ignores timezone settings).
2005-11-29 20:27:21 +00:00
Ilia Alshanetsky
7f66777bbf
MFB51: Fixed bug #35427 (str_word_count() handles '-' incorrectly).
2005-11-29 16:14:47 +00:00
Dmitry Stogov
4192685b64
Fixed bug #35393 (changing static protected members from outside the class, one more reference issue)
2005-11-28 14:33:44 +00:00
Ilia Alshanetsky
92281a047f
MFB51: Fixed bug #35046 (phpinfo() uses improper css enclosure).
2005-11-23 00:15:26 +00:00
Ilia Alshanetsky
f950925688
MFB51: Fixed command error in ftp:// wrapper.
2005-11-22 03:01:59 +00:00
foobar
bcade7ced4
- Fixed header installing under phpize builds
2005-11-21 23:07:36 +00:00
Derick Rethans
d732859624
- MF51: Fixed bug #35143 (gettimeofday() ignores current time zone).
...
- MF51: Fixed tests due to class constants patch.
2005-11-20 20:31:49 +00:00
foobar
895e795b53
- Fixed bug #35243 (php_mblen() crashes when compiled with thread-safety on Linux)
2005-11-20 18:06:09 +00:00
Marcus Boerger
15d89ffd28
- Reflection was moved to its own extension
2005-11-17 23:43:53 +00:00
Sara Golemon
f005e298a0
Bugfix #32371 php://input sometimes returns duplicate data
2005-11-17 19:39:39 +00:00
Dmitry Stogov
376d30f441
Fixed bug #35229 (call_user_func() crashes when arguement_stack is nearly full)
2005-11-16 09:43:56 +00:00
Ilia Alshanetsky
5fd55abd66
Fixed possible crash in http:// wrapper.
2005-11-15 04:24:17 +00:00
Derick Rethans
574a210973
- Fixed protos.
2005-11-12 14:56:35 +00:00
Marcus Boerger
e556247281
- Use the const instead of hard coding
2005-11-11 16:51:24 +00:00
foobar
3392f566c3
- Use the source file as output filename instead of stdout
2005-11-08 12:35:01 +00:00
foobar
4352fa69d4
- use the target file name as output file instead of stdout
2005-11-08 12:34:16 +00:00
foobar
2d9c625cf1
- Make sure the generated files have relative paths in the #line directives
2005-11-08 00:02:50 +00:00
foobar
aeb5830c20
MFB: fixed test
2005-11-01 22:42:03 +00:00
Ilia Alshanetsky
61c8e857e4
MFB51: Fixed bug #35022 , #35019 (Regression in the behavior of key/current
...
functions).
2005-10-30 18:04:20 +00:00
Ilia Alshanetsky
1321658d91
MFB51: Fixed bug #35014 (array_product() always returns 0).
2005-10-30 13:46:34 +00:00
Marcus Boerger
7ae517c131
- It's better to use our own strtol here
2005-10-29 15:49:28 +00:00
Marcus Boerger
86cbff9538
- Allow to specify ma memory usage for temp stream
2005-10-29 15:09:12 +00:00
Marcus Boerger
6e70cdabad
- Register temp and memory stream here
2005-10-29 14:29:59 +00:00
Frank M. Kromann
82c00c179d
Make sure haystack_len is initialized before it's used
2005-10-28 19:29:29 +00:00
Frank M. Kromann
8fc3fd1d7a
Adding missing function declarations to fix win32 build
2005-10-28 19:21:46 +00:00
Dmitry Stogov
6ca72e6ea5
Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope)
2005-10-28 10:06:53 +00:00
Dmitry Stogov
44e9370026
Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope)
2005-10-28 09:57:50 +00:00
Antony Dovgal
a80a5b8cda
apply workaround for the leak only when GLIBC is used
2005-10-25 14:56:48 +00:00
Antony Dovgal
e90fd61a77
fix problem with garbage appearing in hostnames
2005-10-25 08:19:11 +00:00
Rolland Santimano
37d12b82b3
- Unicode impl of strrchr()
2005-10-24 14:35:02 +00:00
Dmitry Stogov
47893ed920
Reverted fix for bug #34934 . The bug marked as bogus.
2005-10-24 07:01:43 +00:00
Antony Dovgal
85e1d03261
fix #34938 (dns_get_record() doesn't resolve long hostnames and leaks)
2005-10-23 18:31:36 +00:00
Ilia Alshanetsky
6a271cc9c9
MFB51: Fixed memory leak on error.
2005-10-23 15:29:38 +00:00
Wez Furlong
58f42f04ad
merge VCWD_ACCESS bugfix to head.
...
Test suite is unusable in HEAD, so I guess it works here too.
2005-10-22 17:26:16 +00:00
Rolland Santimano
a948324778
- php_u_stristr: Remove leading back-slash ... sheesh
2005-10-22 13:36:55 +00:00
Rolland Santimano
68487a234e
- php_u_stristr: s/codepts/codepoints/ - make Jani happy
2005-10-22 13:32:51 +00:00
Rolland Santimano
03b7fe7666
- Unicode impl of strpbrk()
2005-10-22 13:25:00 +00:00
Rolland Santimano
c36ac8de3d
- php_u_stristr: Code comments
2005-10-22 05:52:53 +00:00
Antony Dovgal
aff2ed53ca
fix ws
2005-10-21 15:54:46 +00:00
Dmitry Stogov
02090106d8
Fixed bug #34934 (offsetExists is not called from array_key_exists)
2005-10-21 15:20:30 +00:00
Antony Dovgal
d6f6d9f840
fix possible crash in dns_get_record()
...
cleanup code a bit
(partly fixes #34938 )
2005-10-21 13:48:07 +00:00
Dmitry Stogov
45699741e1
Fixed fgetcsv() and fputcsv() inconsistency.
2005-10-21 12:14:11 +00:00
Rolland Santimano
5ca019aad3
- Unicode impl of stristr()
2005-10-20 19:25:54 +00:00
Antony Dovgal
5feaae6a4c
use proper constants
2005-10-20 16:54:19 +00:00
Rolland Santimano
8ed78ae796
- Unicode impl of str[c]spn()
2005-10-19 19:10:13 +00:00
Ilia Alshanetsky
087145d953
Change E_ERROR to E_WARNING when more_entropy flag is off on Cygwin.
2005-10-19 13:41:36 +00:00
Rolland Santimano
a9ce7d32e4
- Unicode impl of stripos()
2005-10-17 19:50:13 +00:00
Rolland Santimano
b277b1d1c0
- Unicode impl of strrpos()
2005-10-17 17:07:44 +00:00
Derick Rethans
194e2dd081
- MF51: Fixed bug #29361 (var_export() producing invalid code).
2005-10-17 15:03:12 +00:00
foobar
0465f487a4
- Silence unnecessary output
2005-10-16 20:41:02 +00:00
Derick Rethans
a923f3d6f0
- Fixed folding markers.
2005-10-15 12:50:20 +00:00
Dmitry Stogov
7adf1a259c
Fixed unicode support for strip_tags()
2005-10-12 11:00:47 +00:00
Ilia Alshanetsky
2bebbe7773
Fixed bug #34742 (ftp wrapper failures caused from segmented command transfer).
2005-10-11 14:33:14 +00:00
Frank M. Kromann
3afe5200cc
Fix Win32 build by adding missing function declaration.
2005-10-06 21:40:30 +00:00
Derick Rethans
61eae75ec3
- Fixed Windows build (patch by Mike)
2005-10-06 13:03:31 +00:00
Rolland Santimano
07ff8d5632
- strip_tags(): some fixes, still AWiP
2005-10-05 12:16:02 +00:00
Antony Dovgal
2cf16cf942
fix test
2005-10-05 09:00:14 +00:00
Antony Dovgal
f3e70f5b8c
fix #34723 (array_count_values() strips leading zeroes)
2005-10-04 20:47:48 +00:00
Dmitry Stogov
7f89924239
Unicode support
2005-10-04 07:59:14 +00:00
Dmitry Stogov
c8aa7f6088
Fixed compilation error (gcc-4).
2005-10-04 06:33:10 +00:00
Rolland Santimano
11d1574211
- Unicode impl of strip_tags()
2005-10-03 17:00:00 +00:00
Ilia Alshanetsky
63cd70e920
GLOBALS protection for extract() function.
2005-10-03 14:01:36 +00:00
Rolland Santimano
eea40f95d8
- Unicode impl of similar_text()
2005-10-03 06:14:10 +00:00
Rolland Santimano
2dc1c72917
- substr_replace(): call correct funcn for string conversion
2005-09-30 13:19:15 +00:00
Rolland Santimano
8ec9f097b6
- Unicode impl of levenshtein()
2005-09-30 06:20:47 +00:00
Ilia Alshanetsky
a36e2bd05a
Fixed possible crash and/or memory corruption in import_request_variables()
...
Fixed potential GLOBALS overwrite via import_request_variables().
2005-09-29 16:30:15 +00:00
Rolland Santimano
c893c70275
- Unicode impl of strtok()
2005-09-29 11:05:30 +00:00
Rolland Santimano
6f06e93237
- Updated addslashes(): add codepoints directly rather than with zend_codepoint_to_uchar()
2005-09-29 09:33:38 +00:00
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