]>
granicus.if.org Git - php/log
Andrei Zmievski [Thu, 6 Apr 2006 22:02:02 +0000 (22:02 +0000)]
Even more stuff from Friedl.
Andrei Zmievski [Thu, 6 Apr 2006 21:23:56 +0000 (21:23 +0000)]
More stuff from Friedl..
Andrei Zmievski [Thu, 6 Apr 2006 21:16:28 +0000 (21:16 +0000)]
MFB
Sara Golemon [Thu, 6 Apr 2006 20:05:43 +0000 (20:05 +0000)]
Plug leak which occurs in unicode mode
Sara Golemon [Thu, 6 Apr 2006 20:03:27 +0000 (20:03 +0000)]
Silence false positives on test results
Sara Golemon [Thu, 6 Apr 2006 19:51:36 +0000 (19:51 +0000)]
Silence false positives in test failures
Sara Golemon [Thu, 6 Apr 2006 19:39:11 +0000 (19:39 +0000)]
Do runtime conversions (with an E_NOTICE) on writing unicode data to a binary stream. Take the WTF out of the equation
Antony Dovgal [Thu, 6 Apr 2006 19:11:06 +0000 (19:11 +0000)]
MF51: fix #36981 (SplFileObject->fgets() ignores max_length)
Sara Golemon [Thu, 6 Apr 2006 18:02:39 +0000 (18:02 +0000)]
Overload 'duplicate' arg as applied to:
add_((next_)?index|assoc)_(ascii|rt)_stringl?(_ex)?
and
(ZVAL|RETVAL|RETURN)_(ASCII|RT|U)_STRINGL?
#define ZSTR_DUPLICATE (1<<0)
#define ZSTR_AUTOFREE (1<<1)
Duplicate keeps traditional value of '1', additional bit '2' tells
unicode mode conversion to automatically free the original string
in order to avoid leaks due to conversion on a value otherwise being
"given" to the engine.
/* Uses s as-is for non-unicode, or frees s after converting to unicode */
{
char *s = estrdup("Hello");
ZVAL_RT_STRING(pzv, s, ZSTR_AUTOFREE);
}
/* Duplicates for non-unicode, or converts (but doesn't free original) */
{
char *s = "Hello";
ZVAL_RT_STRING(pzv, s, ZSTR_DUPLICATE);
}
/* Uses as-is for non-unicode, or converts (but doesn't free original) */
{
char *s = "Hello";
zval zv;
ZVAL_RT_STRING(&zv, s, 0);
/* use zv for some temporary purpose */
/* It's now necessary to manually free this generated value */
if (UG(unicode)) {
zval_dtor(&zv);
}
}
<changelog@php.net> [Thu, 6 Apr 2006 05:31:50 +0000 (05:31 +0000)]
ChangeLog update
Antony Dovgal [Wed, 5 Apr 2006 20:21:59 +0000 (20:21 +0000)]
workaround for problem on Solaris: shell tries to parse "for i in ;" and fails
Antony Dovgal [Wed, 5 Apr 2006 14:09:31 +0000 (14:09 +0000)]
add new tests
Antony Dovgal [Wed, 5 Apr 2006 14:07:57 +0000 (14:07 +0000)]
add missing defines to .w32
Antony Dovgal [Wed, 5 Apr 2006 14:07:16 +0000 (14:07 +0000)]
fix #36934 (OCILob->read() doesn't move internal pointer when reading 0's)
no support for Unicode CLOBs in Oracle < 10, sorry.
Antony Dovgal [Wed, 5 Apr 2006 12:29:35 +0000 (12:29 +0000)]
add test
Antony Dovgal [Wed, 5 Apr 2006 11:36:28 +0000 (11:36 +0000)]
MF51: fix #36944 (strncmp & strncasecmp do not return false on negative string length)
<changelog@php.net> [Wed, 5 Apr 2006 05:31:46 +0000 (05:31 +0000)]
ChangeLog update
Ilia Alshanetsky [Wed, 5 Apr 2006 02:28:39 +0000 (02:28 +0000)]
Fixed bug #36957 (serialize() does not handle recursion).
Frank M. Kromann [Tue, 4 Apr 2006 18:49:44 +0000 (18:49 +0000)]
MFP51: Fix #33694 invalid sql or timeouts makes it impossible to reuse persistent connections
Seiji Masugata [Tue, 4 Apr 2006 15:14:28 +0000 (15:14 +0000)]
fixed commnet typo, and duplicate logic.
Derick Rethans [Tue, 4 Apr 2006 06:04:49 +0000 (06:04 +0000)]
- No need to have this one twice here... (Thanks Steph)
<changelog@php.net> [Tue, 4 Apr 2006 05:31:44 +0000 (05:31 +0000)]
ChangeLog update
Marcus Boerger [Mon, 3 Apr 2006 19:58:03 +0000 (19:58 +0000)]
- WS
Marcus Boerger [Mon, 3 Apr 2006 19:52:02 +0000 (19:52 +0000)]
- Fix issue related to #36941 (when referencing itself)
Antony Dovgal [Mon, 3 Apr 2006 18:11:56 +0000 (18:11 +0000)]
add test for gmp_nextprime()
Antony Dovgal [Mon, 3 Apr 2006 17:46:12 +0000 (17:46 +0000)]
add gmp_nextprime() function
patch by ants dot aasma at gmail dot com
Seiji Masugata [Mon, 3 Apr 2006 15:32:43 +0000 (15:32 +0000)]
added mb_stristr( ), mb_strrichr( ).
Ilia Alshanetsky [Mon, 3 Apr 2006 13:46:35 +0000 (13:46 +0000)]
MFB51: Fixed an unlikely, but possible memory leak.
Antony Dovgal [Mon, 3 Apr 2006 09:14:50 +0000 (09:14 +0000)]
fix spelling in error messages:
greater/less thEn -> greater/less thAn
Sara Golemon [Mon, 3 Apr 2006 05:57:40 +0000 (05:57 +0000)]
Update tests for working with unicode
<changelog@php.net> [Mon, 3 Apr 2006 05:31:46 +0000 (05:31 +0000)]
ChangeLog update
Ilia Alshanetsky [Sun, 2 Apr 2006 17:58:07 +0000 (17:58 +0000)]
Removed extra space in the Content-Type header for logos
Simplified stderr error reporting in apache sapi.
Sara Golemon [Sun, 2 Apr 2006 17:49:10 +0000 (17:49 +0000)]
Silence false positive test failures
Sara Golemon [Sun, 2 Apr 2006 17:41:04 +0000 (17:41 +0000)]
Make some tests pass.
compression is just a binary thing.
Write unicode and suffer my wrath!
Marcus Boerger [Sun, 2 Apr 2006 15:04:04 +0000 (15:04 +0000)]
- Behavior fix for #36941
Marcus Boerger [Sun, 2 Apr 2006 12:48:37 +0000 (12:48 +0000)]
- Fix warning
<changelog@php.net> [Sun, 2 Apr 2006 06:31:43 +0000 (06:31 +0000)]
ChangeLog update
Marcus Boerger [Sat, 1 Apr 2006 22:39:42 +0000 (22:39 +0000)]
- Bugfix #36941 (ArrayIterator does not clone itself)
Antony Dovgal [Sat, 1 Apr 2006 19:14:01 +0000 (19:14 +0000)]
MF51: fix segfault when assigning value by ref and add test
<changelog@php.net> [Sat, 1 Apr 2006 06:31:49 +0000 (06:31 +0000)]
ChangeLog update
Sara Golemon [Sat, 1 Apr 2006 00:05:31 +0000 (00:05 +0000)]
Update filename handling and mark various functions for unicode safety
Pierre Joye [Fri, 31 Mar 2006 23:20:58 +0000 (23:20 +0000)]
- move setSchema to the 2.6.20 block, this method is only available from
this version
Sara Golemon [Fri, 31 Mar 2006 22:51:37 +0000 (22:51 +0000)]
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.
Marcus Boerger [Fri, 31 Mar 2006 20:50:29 +0000 (20:50 +0000)]
- Add XMLReader::setSchema
Antony Dovgal [Fri, 31 Mar 2006 11:11:26 +0000 (11:11 +0000)]
MF51: fix compile failure with old GCC (see bug #36931)
<changelog@php.net> [Fri, 31 Mar 2006 06:31:50 +0000 (06:31 +0000)]
ChangeLog update
Marcus Boerger [Thu, 30 Mar 2006 23:03:53 +0000 (23:03 +0000)]
- Fix build
Marcus Boerger [Thu, 30 Mar 2006 22:03:02 +0000 (22:03 +0000)]
- MFB Make readable
Marcus Boerger [Thu, 30 Mar 2006 21:45:27 +0000 (21:45 +0000)]
- Add another test
Antony Dovgal [Thu, 30 Mar 2006 21:39:15 +0000 (21:39 +0000)]
MF51: fix compilation on AIX
Antony Dovgal [Thu, 30 Mar 2006 20:43:55 +0000 (20:43 +0000)]
MF51: fix tests
Antony Dovgal [Thu, 30 Mar 2006 19:59:51 +0000 (19:59 +0000)]
fix TSRM build
Ilia Alshanetsky [Thu, 30 Mar 2006 19:16:28 +0000 (19:16 +0000)]
MFB51: Fixed XSS inside phpinfo() with long inputs.
Marcus Boerger [Thu, 30 Mar 2006 17:36:46 +0000 (17:36 +0000)]
- Return NULL instead of '' if node does not exist
Seiji Masugata [Thu, 30 Mar 2006 15:43:54 +0000 (15:43 +0000)]
added mb_stripos( ), mb_strripos( ).
Dmitry Stogov [Thu, 30 Mar 2006 14:08:38 +0000 (14:08 +0000)]
typo
Antony Dovgal [Thu, 30 Mar 2006 11:23:11 +0000 (11:23 +0000)]
MF51: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace)
Dmitry Stogov [Thu, 30 Mar 2006 08:15:18 +0000 (08:15 +0000)]
Unicode support
Dmitry Stogov [Thu, 30 Mar 2006 07:54:53 +0000 (07:54 +0000)]
Describe registr_long_arrays, ze1_compatibility_mode, dl(), E_ALL/E_STRICT
<changelog@php.net> [Thu, 30 Mar 2006 06:31:53 +0000 (06:31 +0000)]
ChangeLog update
Sara Golemon [Thu, 30 Mar 2006 00:22:51 +0000 (00:22 +0000)]
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).
Sara Golemon [Wed, 29 Mar 2006 22:52:24 +0000 (22:52 +0000)]
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).
Antony Dovgal [Wed, 29 Mar 2006 16:30:54 +0000 (16:30 +0000)]
fix typo
Seiji Masugata [Wed, 29 Mar 2006 15:47:07 +0000 (15:47 +0000)]
added mb_strrchr( ).
Antony Dovgal [Wed, 29 Mar 2006 15:08:52 +0000 (15:08 +0000)]
MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
<changelog@php.net> [Wed, 29 Mar 2006 06:31:49 +0000 (06:31 +0000)]
ChangeLog update
Andrei Zmievski [Wed, 29 Mar 2006 05:56:06 +0000 (05:56 +0000)]
Bug!
Sara Golemon [Wed, 29 Mar 2006 01:52:28 +0000 (01:52 +0000)]
Ooops, missed a file
Sara Golemon [Wed, 29 Mar 2006 01:20:43 +0000 (01:20 +0000)]
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.
Yasuo Ohgaki [Wed, 29 Mar 2006 01:10:27 +0000 (01:10 +0000)]
restore E_WARNING in correct place
Antony Dovgal [Tue, 28 Mar 2006 21:58:21 +0000 (21:58 +0000)]
initialize bucket #0 with nulls
Antony Dovgal [Tue, 28 Mar 2006 19:43:37 +0000 (19:43 +0000)]
MF51: fix #36897 (debug_print_backtrace() doesn't return void but array(0) {})
Seiji Masugata [Tue, 28 Mar 2006 16:05:16 +0000 (16:05 +0000)]
added mb_strstr( ).
Antony Dovgal [Tue, 28 Mar 2006 09:13:35 +0000 (09:13 +0000)]
fix tests
Antony Dovgal [Tue, 28 Mar 2006 09:13:22 +0000 (09:13 +0000)]
MF51: fix #36851 (Documentation and code discrepancies for NULL data)
<changelog@php.net> [Tue, 28 Mar 2006 06:31:49 +0000 (06:31 +0000)]
ChangeLog update
Andrei Zmievski [Tue, 28 Mar 2006 06:30:47 +0000 (06:30 +0000)]
Note
Andrei Zmievski [Tue, 28 Mar 2006 04:33:29 +0000 (04:33 +0000)]
Fix collator instantiation.
Andrei Zmievski [Tue, 28 Mar 2006 03:28:08 +0000 (03:28 +0000)]
Fix typos.
Ilia Alshanetsky [Mon, 27 Mar 2006 23:41:05 +0000 (23:41 +0000)]
MFB51: Check 2nd parameter of tempnam() against path components.
Andrei Zmievski [Mon, 27 Mar 2006 23:05:38 +0000 (23:05 +0000)]
Fix UErrorCode check.
Andrei Zmievski [Mon, 27 Mar 2006 22:16:53 +0000 (22:16 +0000)]
Typo.
Antony Dovgal [Mon, 27 Mar 2006 22:07:50 +0000 (22:07 +0000)]
MF51: fix #36878 (error messages are printed even though an exception has been thrown)
Andrei Zmievski [Mon, 27 Mar 2006 21:19:12 +0000 (21:19 +0000)]
Make a UTODO note.
Andrei Zmievski [Mon, 27 Mar 2006 19:24:18 +0000 (19:24 +0000)]
Proto updates.
Andrei Zmievski [Mon, 27 Mar 2006 19:18:40 +0000 (19:18 +0000)]
*** empty log message ***
Andrei Zmievski [Mon, 27 Mar 2006 19:15:58 +0000 (19:15 +0000)]
Add UTODO.
Andrei Zmievski [Mon, 27 Mar 2006 17:34:06 +0000 (17:34 +0000)]
Mark with UTODO instead of FIXME.
Antony Dovgal [Mon, 27 Mar 2006 16:43:02 +0000 (16:43 +0000)]
fix possible NULL dereference
Seiji Masugata [Mon, 27 Mar 2006 15:20:02 +0000 (15:20 +0000)]
added mb_list_mime_names( ).
Dmitry Stogov [Mon, 27 Mar 2006 14:37:14 +0000 (14:37 +0000)]
Test for strtr() with non-ascii encoding
Dmitry Stogov [Mon, 27 Mar 2006 14:19:18 +0000 (14:19 +0000)]
Unicode support
Dmitry Stogov [Mon, 27 Mar 2006 14:08:10 +0000 (14:08 +0000)]
Fixed test
Dmitry Stogov [Mon, 27 Mar 2006 13:53:19 +0000 (13:53 +0000)]
Fixed test
Dmitry Stogov [Mon, 27 Mar 2006 13:42:04 +0000 (13:42 +0000)]
Fixed test
Dmitry Stogov [Mon, 27 Mar 2006 13:37:47 +0000 (13:37 +0000)]
Unicode support
Dmitry Stogov [Mon, 27 Mar 2006 10:25:35 +0000 (10:25 +0000)]
Unicode support
Dmitry Stogov [Mon, 27 Mar 2006 10:15:02 +0000 (10:15 +0000)]
Fixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed test
Dmitry Stogov [Mon, 27 Mar 2006 09:44:03 +0000 (09:44 +0000)]
Fixed bug during function/class declaration in unicode mode
Dmitry Stogov [Mon, 27 Mar 2006 09:42:15 +0000 (09:42 +0000)]
Fixed test file (test still fail)