]> granicus.if.org Git - php/log
php
18 years agoDo runtime conversions (with an E_NOTICE) on writing unicode data to a binary stream...
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

18 years agoMF51: fix #36981 (SplFileObject->fgets() ignores max_length)
Antony Dovgal [Thu, 6 Apr 2006 19:11:06 +0000 (19:11 +0000)]
MF51: fix #36981 (SplFileObject->fgets() ignores max_length)

18 years agoOverload 'duplicate' arg as applied to:
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);
  }
}

18 years agoChangeLog update
<changelog@php.net> [Thu, 6 Apr 2006 05:31:50 +0000 (05:31 +0000)]
ChangeLog update

18 years agoworkaround for problem on Solaris: shell tries to parse "for i in ;" and fails
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

18 years agoadd new tests
Antony Dovgal [Wed, 5 Apr 2006 14:09:31 +0000 (14:09 +0000)]
add new tests

18 years agoadd missing defines to .w32
Antony Dovgal [Wed, 5 Apr 2006 14:07:57 +0000 (14:07 +0000)]
add missing defines to .w32

18 years agofix #36934 (OCILob->read() doesn't move internal pointer when reading 0's)
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.

18 years agoadd test
Antony Dovgal [Wed, 5 Apr 2006 12:29:35 +0000 (12:29 +0000)]
add test

18 years agoMF51: fix #36944 (strncmp & strncasecmp do not return false on negative string length)
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)

18 years agoChangeLog update
<changelog@php.net> [Wed, 5 Apr 2006 05:31:46 +0000 (05:31 +0000)]
ChangeLog update

18 years agoFixed bug #36957 (serialize() does not handle recursion).
Ilia Alshanetsky [Wed, 5 Apr 2006 02:28:39 +0000 (02:28 +0000)]
Fixed bug #36957 (serialize() does not handle recursion).

18 years agoMFP51: Fix #33694 invalid sql or timeouts makes it impossible to reuse persistent...
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

18 years agofixed commnet typo, and duplicate logic.
Seiji Masugata [Tue, 4 Apr 2006 15:14:28 +0000 (15:14 +0000)]
fixed commnet typo, and duplicate logic.

18 years ago- No need to have this one twice here... (Thanks Steph)
Derick Rethans [Tue, 4 Apr 2006 06:04:49 +0000 (06:04 +0000)]
- No need to have this one twice here... (Thanks Steph)

18 years agoChangeLog update
<changelog@php.net> [Tue, 4 Apr 2006 05:31:44 +0000 (05:31 +0000)]
ChangeLog update

18 years ago- WS
Marcus Boerger [Mon, 3 Apr 2006 19:58:03 +0000 (19:58 +0000)]
- WS

18 years ago- Fix issue related to #36941 (when referencing itself)
Marcus Boerger [Mon, 3 Apr 2006 19:52:02 +0000 (19:52 +0000)]
- Fix issue related to #36941 (when referencing itself)

18 years agoadd test for gmp_nextprime()
Antony Dovgal [Mon, 3 Apr 2006 18:11:56 +0000 (18:11 +0000)]
add test for gmp_nextprime()

18 years agoadd gmp_nextprime() function
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

18 years agoadded mb_stristr( ), mb_strrichr( ).
Seiji Masugata [Mon, 3 Apr 2006 15:32:43 +0000 (15:32 +0000)]
added mb_stristr( ), mb_strrichr( ).

18 years agoMFB51: Fixed an unlikely, but possible memory leak.
Ilia Alshanetsky [Mon, 3 Apr 2006 13:46:35 +0000 (13:46 +0000)]
MFB51: Fixed an unlikely, but possible memory leak.

18 years agofix spelling in error messages:
Antony Dovgal [Mon, 3 Apr 2006 09:14:50 +0000 (09:14 +0000)]
fix spelling in error messages:
greater/less thEn -> greater/less thAn

18 years agoUpdate tests for working with unicode
Sara Golemon [Mon, 3 Apr 2006 05:57:40 +0000 (05:57 +0000)]
Update tests for working with unicode

18 years agoChangeLog update
<changelog@php.net> [Mon, 3 Apr 2006 05:31:46 +0000 (05:31 +0000)]
ChangeLog update

18 years agoRemoved extra space in the Content-Type header for logos
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.

18 years agoSilence false positive test failures
Sara Golemon [Sun, 2 Apr 2006 17:49:10 +0000 (17:49 +0000)]
Silence false positive test failures

18 years agoMake some tests pass.
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!

18 years ago- Behavior fix for #36941
Marcus Boerger [Sun, 2 Apr 2006 15:04:04 +0000 (15:04 +0000)]
- Behavior fix for #36941

18 years ago- Fix warning
Marcus Boerger [Sun, 2 Apr 2006 12:48:37 +0000 (12:48 +0000)]
- Fix warning

18 years agoChangeLog update
<changelog@php.net> [Sun, 2 Apr 2006 06:31:43 +0000 (06:31 +0000)]
ChangeLog update

18 years ago- Bugfix #36941 (ArrayIterator does not clone itself)
Marcus Boerger [Sat, 1 Apr 2006 22:39:42 +0000 (22:39 +0000)]
- Bugfix #36941 (ArrayIterator does not clone itself)

18 years agoMF51: fix segfault when assigning value by ref and add test
Antony Dovgal [Sat, 1 Apr 2006 19:14:01 +0000 (19:14 +0000)]
MF51: fix segfault when assigning value by ref and add test

18 years agoChangeLog update
<changelog@php.net> [Sat, 1 Apr 2006 06:31:49 +0000 (06:31 +0000)]
ChangeLog update

18 years agoUpdate filename handling and mark various functions for unicode safety
Sara Golemon [Sat, 1 Apr 2006 00:05:31 +0000 (00:05 +0000)]
Update filename handling and mark various functions for unicode safety

18 years ago- move setSchema to the 2.6.20 block, this method is only available from
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

18 years agoAdd API hooks and unicode.filesystem_encoding for handling unicode
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.

18 years ago- Add XMLReader::setSchema
Marcus Boerger [Fri, 31 Mar 2006 20:50:29 +0000 (20:50 +0000)]
- Add XMLReader::setSchema

18 years agoMF51: fix compile failure with old GCC (see bug #36931)
Antony Dovgal [Fri, 31 Mar 2006 11:11:26 +0000 (11:11 +0000)]
MF51: fix compile failure with old GCC (see bug #36931)

18 years agoChangeLog update
<changelog@php.net> [Fri, 31 Mar 2006 06:31:50 +0000 (06:31 +0000)]
ChangeLog update

18 years ago- Fix build
Marcus Boerger [Thu, 30 Mar 2006 23:03:53 +0000 (23:03 +0000)]
- Fix build

18 years ago- MFB Make readable
Marcus Boerger [Thu, 30 Mar 2006 22:03:02 +0000 (22:03 +0000)]
- MFB Make readable

18 years ago- Add another test
Marcus Boerger [Thu, 30 Mar 2006 21:45:27 +0000 (21:45 +0000)]
- Add another test

18 years agoMF51: fix compilation on AIX
Antony Dovgal [Thu, 30 Mar 2006 21:39:15 +0000 (21:39 +0000)]
MF51: fix compilation on AIX

18 years agoMF51: fix tests
Antony Dovgal [Thu, 30 Mar 2006 20:43:55 +0000 (20:43 +0000)]
MF51: fix tests

18 years agofix TSRM build
Antony Dovgal [Thu, 30 Mar 2006 19:59:51 +0000 (19:59 +0000)]
fix TSRM build

18 years agoMFB51: Fixed XSS inside phpinfo() with long inputs.
Ilia Alshanetsky [Thu, 30 Mar 2006 19:16:28 +0000 (19:16 +0000)]
MFB51: Fixed XSS inside phpinfo() with long inputs.

18 years ago- Return NULL instead of '' if node does not exist
Marcus Boerger [Thu, 30 Mar 2006 17:36:46 +0000 (17:36 +0000)]
- Return NULL instead of '' if node does not exist

18 years agoadded mb_stripos( ), mb_strripos( ).
Seiji Masugata [Thu, 30 Mar 2006 15:43:54 +0000 (15:43 +0000)]
added mb_stripos( ), mb_strripos( ).

18 years agotypo
Dmitry Stogov [Thu, 30 Mar 2006 14:08:38 +0000 (14:08 +0000)]
typo

18 years agoMF51: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace)
Antony Dovgal [Thu, 30 Mar 2006 11:23:11 +0000 (11:23 +0000)]
MF51: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace)

18 years agoUnicode support
Dmitry Stogov [Thu, 30 Mar 2006 08:15:18 +0000 (08:15 +0000)]
Unicode support

18 years agoDescribe registr_long_arrays, ze1_compatibility_mode, dl(), E_ALL/E_STRICT
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

18 years agoChangeLog update
<changelog@php.net> [Thu, 30 Mar 2006 06:31:53 +0000 (06:31 +0000)]
ChangeLog update

18 years agoMake php_stream_copy_to_mem() unicode aware and
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).

18 years agoUpdate php_stream_passthru() to handle unicode data.
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).

18 years agofix typo
Antony Dovgal [Wed, 29 Mar 2006 16:30:54 +0000 (16:30 +0000)]
fix typo

18 years agoadded mb_strrchr( ).
Seiji Masugata [Wed, 29 Mar 2006 15:47:07 +0000 (15:47 +0000)]
added mb_strrchr( ).

18 years agoMF51: fix bug #36898 (__set() leaks in classes extending internal ones)
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)

18 years agoChangeLog update
<changelog@php.net> [Wed, 29 Mar 2006 06:31:49 +0000 (06:31 +0000)]
ChangeLog update

18 years agoBug!
Andrei Zmievski [Wed, 29 Mar 2006 05:56:06 +0000 (05:56 +0000)]
Bug!

18 years agoOoops, missed a file
Sara Golemon [Wed, 29 Mar 2006 01:52:28 +0000 (01:52 +0000)]
Ooops, missed a file

18 years agoAnother (and hopefully last) major streams commit.
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.

18 years agorestore E_WARNING in correct place
Yasuo Ohgaki [Wed, 29 Mar 2006 01:10:27 +0000 (01:10 +0000)]
restore E_WARNING in correct place

18 years agoinitialize bucket #0 with nulls
Antony Dovgal [Tue, 28 Mar 2006 21:58:21 +0000 (21:58 +0000)]
initialize bucket #0 with nulls

18 years agoMF51: fix #36897 (debug_print_backtrace() doesn't return void but array(0) {})
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) {})

18 years agoadded mb_strstr( ).
Seiji Masugata [Tue, 28 Mar 2006 16:05:16 +0000 (16:05 +0000)]
added mb_strstr( ).

18 years agofix tests
Antony Dovgal [Tue, 28 Mar 2006 09:13:35 +0000 (09:13 +0000)]
fix tests

18 years agoMF51: fix #36851 (Documentation and code discrepancies for NULL data)
Antony Dovgal [Tue, 28 Mar 2006 09:13:22 +0000 (09:13 +0000)]
MF51: fix #36851 (Documentation and code discrepancies for NULL data)

18 years agoChangeLog update
<changelog@php.net> [Tue, 28 Mar 2006 06:31:49 +0000 (06:31 +0000)]
ChangeLog update

18 years agoNote
Andrei Zmievski [Tue, 28 Mar 2006 06:30:47 +0000 (06:30 +0000)]
Note

18 years agoFix collator instantiation.
Andrei Zmievski [Tue, 28 Mar 2006 04:33:29 +0000 (04:33 +0000)]
Fix collator instantiation.

18 years agoFix typos.
Andrei Zmievski [Tue, 28 Mar 2006 03:28:08 +0000 (03:28 +0000)]
Fix typos.

18 years agoMFB51: Check 2nd parameter of tempnam() against path components.
Ilia Alshanetsky [Mon, 27 Mar 2006 23:41:05 +0000 (23:41 +0000)]
MFB51: Check 2nd parameter of tempnam() against path components.

18 years agoFix UErrorCode check.
Andrei Zmievski [Mon, 27 Mar 2006 23:05:38 +0000 (23:05 +0000)]
Fix UErrorCode check.

18 years agoTypo.
Andrei Zmievski [Mon, 27 Mar 2006 22:16:53 +0000 (22:16 +0000)]
Typo.

18 years agoMF51: fix #36878 (error messages are printed even though an exception has been thrown)
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)

18 years agoMake a UTODO note.
Andrei Zmievski [Mon, 27 Mar 2006 21:19:12 +0000 (21:19 +0000)]
Make a UTODO note.

18 years agoProto updates.
Andrei Zmievski [Mon, 27 Mar 2006 19:24:18 +0000 (19:24 +0000)]
Proto updates.

18 years ago*** empty log message ***
Andrei Zmievski [Mon, 27 Mar 2006 19:18:40 +0000 (19:18 +0000)]
*** empty log message ***

18 years agoAdd UTODO.
Andrei Zmievski [Mon, 27 Mar 2006 19:15:58 +0000 (19:15 +0000)]
Add UTODO.

18 years agoMark with UTODO instead of FIXME.
Andrei Zmievski [Mon, 27 Mar 2006 17:34:06 +0000 (17:34 +0000)]
Mark with UTODO instead of FIXME.

18 years agofix possible NULL dereference
Antony Dovgal [Mon, 27 Mar 2006 16:43:02 +0000 (16:43 +0000)]
fix possible NULL dereference

18 years agoadded mb_list_mime_names( ).
Seiji Masugata [Mon, 27 Mar 2006 15:20:02 +0000 (15:20 +0000)]
added mb_list_mime_names( ).

18 years agoTest for strtr() with non-ascii encoding
Dmitry Stogov [Mon, 27 Mar 2006 14:37:14 +0000 (14:37 +0000)]
Test for strtr() with non-ascii encoding

18 years agoUnicode support
Dmitry Stogov [Mon, 27 Mar 2006 14:19:18 +0000 (14:19 +0000)]
Unicode support

18 years agoFixed test
Dmitry Stogov [Mon, 27 Mar 2006 14:08:10 +0000 (14:08 +0000)]
Fixed test

18 years agoFixed test
Dmitry Stogov [Mon, 27 Mar 2006 13:53:19 +0000 (13:53 +0000)]
Fixed test

18 years agoFixed test
Dmitry Stogov [Mon, 27 Mar 2006 13:42:04 +0000 (13:42 +0000)]
Fixed test

18 years agoUnicode support
Dmitry Stogov [Mon, 27 Mar 2006 13:37:47 +0000 (13:37 +0000)]
Unicode support

18 years agoUnicode support
Dmitry Stogov [Mon, 27 Mar 2006 10:25:35 +0000 (10:25 +0000)]
Unicode support

18 years agoFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed...
Dmitry Stogov [Mon, 27 Mar 2006 10:15:02 +0000 (10:15 +0000)]
Fixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed test

18 years agoFixed bug during function/class declaration in unicode mode
Dmitry Stogov [Mon, 27 Mar 2006 09:44:03 +0000 (09:44 +0000)]
Fixed bug during function/class declaration in unicode mode

18 years agoFixed test file (test still fail)
Dmitry Stogov [Mon, 27 Mar 2006 09:42:15 +0000 (09:42 +0000)]
Fixed test file (test still fail)

18 years agoFixed test
Dmitry Stogov [Mon, 27 Mar 2006 09:39:27 +0000 (09:39 +0000)]
Fixed test

18 years agoMF51: fix #36869 (memory leak in output buffering when using chunked output)
Antony Dovgal [Mon, 27 Mar 2006 08:26:20 +0000 (08:26 +0000)]
MF51: fix #36869 (memory leak in output buffering when using chunked output)

18 years agoFixed meory leak in case of unknown pragma
Dmitry Stogov [Mon, 27 Mar 2006 08:09:08 +0000 (08:09 +0000)]
Fixed meory leak in case of unknown pragma

18 years agoBetter but incomplete fix for bug #36840
Dmitry Stogov [Mon, 27 Mar 2006 07:35:05 +0000 (07:35 +0000)]
Better but incomplete fix for bug #36840

18 years agoChangeLog update
<changelog@php.net> [Mon, 27 Mar 2006 06:31:51 +0000 (06:31 +0000)]
ChangeLog update

18 years agoFixed ZTS build
Dmitry Stogov [Mon, 27 Mar 2006 06:02:42 +0000 (06:02 +0000)]
Fixed ZTS build