]> granicus.if.org Git - php/log
php
13 years agoreduced memory footprint for codepages.
Rui Hirokawa [Mon, 8 Aug 2011 16:14:30 +0000 (16:14 +0000)]
reduced memory footprint for codepages.

13 years agoFixed build
Ilia Alshanetsky [Mon, 8 Aug 2011 16:06:40 +0000 (16:06 +0000)]
Fixed build

13 years agoFix typo
Etienne Kneuss [Mon, 8 Aug 2011 14:52:34 +0000 (14:52 +0000)]
Fix typo

13 years agoRemoval of deadcode identified by coverity
Ilia Alshanetsky [Mon, 8 Aug 2011 13:45:18 +0000 (13:45 +0000)]
Removal of deadcode identified by coverity

13 years agoRemoved deadcode
Ilia Alshanetsky [Mon, 8 Aug 2011 12:14:58 +0000 (12:14 +0000)]
Removed deadcode

13 years agoMake static analyzers happy
Ilia Alshanetsky [Mon, 8 Aug 2011 12:10:27 +0000 (12:10 +0000)]
Make static analyzers happy

13 years agoFix validator for SplFileInfo constructor
Etienne Kneuss [Mon, 8 Aug 2011 12:05:34 +0000 (12:05 +0000)]
Fix validator for SplFileInfo constructor

13 years agoFix typo
Pierrick Charron [Mon, 8 Aug 2011 11:30:56 +0000 (11:30 +0000)]
Fix typo

13 years agoUse snprintf to make the static analyzers happy
Pierrick Charron [Mon, 8 Aug 2011 11:19:49 +0000 (11:19 +0000)]
Use snprintf to make the static analyzers happy

13 years agoSizeof mismatch
Xinchen Hui [Mon, 8 Aug 2011 08:49:55 +0000 (08:49 +0000)]
Sizeof mismatch

13 years ago- Document the new ZEND_DONT_UNLOAD_MODULES environment variable.
Derick Rethans [Mon, 8 Aug 2011 07:42:58 +0000 (07:42 +0000)]
- Document the new ZEND_DONT_UNLOAD_MODULES environment variable.

13 years agoPrevented the warning about truncate int to char
Xinchen Hui [Mon, 8 Aug 2011 07:12:12 +0000 (07:12 +0000)]
Prevented the warning about truncate int to char

13 years agoMake codes more clearly, and make the static analyzer silent..
Xinchen Hui [Mon, 8 Aug 2011 06:49:17 +0000 (06:49 +0000)]
Make codes more clearly, and make the static analyzer silent..

13 years agoUse snprintf and strncat to make the static analyzers happy
Pierrick Charron [Mon, 8 Aug 2011 03:08:59 +0000 (03:08 +0000)]
Use snprintf and strncat to make the static analyzers happy

13 years agoWrong sizeof
Xinchen Hui [Mon, 8 Aug 2011 02:33:03 +0000 (02:33 +0000)]
Wrong sizeof

13 years agoRemove no sense statements
Xinchen Hui [Mon, 8 Aug 2011 00:47:40 +0000 (00:47 +0000)]
Remove no sense statements

13 years agoAvoid strcpy() usage
Ilia Alshanetsky [Mon, 8 Aug 2011 00:07:54 +0000 (00:07 +0000)]
Avoid strcpy() usage

13 years agoFixes for variety of issues identified by coverity scan
Ilia Alshanetsky [Sun, 7 Aug 2011 23:46:00 +0000 (23:46 +0000)]
Fixes for variety of issues identified by coverity scan

13 years agopossible use without init fixed
Gwynne Raskind [Sun, 7 Aug 2011 18:12:52 +0000 (18:12 +0000)]
possible use without init fixed

13 years ago- Fixed bug #55378: binary number literal returns float number though its value
Derick Rethans [Sun, 7 Aug 2011 17:36:31 +0000 (17:36 +0000)]
- Fixed bug #55378: binary number literal returns float number though its value
  is enough small

13 years agoFront- and back-port rev 314431 (missing php.h include)
Gwynne Raskind [Sun, 7 Aug 2011 17:15:40 +0000 (17:15 +0000)]
Front- and back-port rev 314431 (missing php.h include)

13 years agoBack- and front-port fixes for #55019
Gwynne Raskind [Sun, 7 Aug 2011 17:14:14 +0000 (17:14 +0000)]
Back- and front-port fixes for #55019

13 years agoFor 5.4, fix C++-style comments. For trunk, forward-port build fix.
Gwynne Raskind [Sun, 7 Aug 2011 16:31:21 +0000 (16:31 +0000)]
For 5.4, fix C++-style comments. For trunk, forward-port build fix.

13 years agoFix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
Rasmus Lerdorf [Sun, 7 Aug 2011 16:10:34 +0000 (16:10 +0000)]
Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
static string copies

13 years agoMore signed 1-bit bitfields
Rasmus Lerdorf [Sun, 7 Aug 2011 15:57:35 +0000 (15:57 +0000)]
More signed 1-bit bitfields

13 years agoSigned 1-bit bitfields make no sense
Rasmus Lerdorf [Sun, 7 Aug 2011 15:52:46 +0000 (15:52 +0000)]
Signed 1-bit bitfields make no sense

13 years agoNot an issue here, but a good habit to follow consistently. Never use strcpy/strcat.
Rasmus Lerdorf [Sun, 7 Aug 2011 15:45:18 +0000 (15:45 +0000)]
Not an issue here, but a good habit to follow consistently. Never use strcpy/strcat.

13 years agoMake static analyzers happy
Rasmus Lerdorf [Sun, 7 Aug 2011 15:38:36 +0000 (15:38 +0000)]
Make static analyzers happy

13 years agorevert -r314422
Xinchen Hui [Sun, 7 Aug 2011 14:25:30 +0000 (14:25 +0000)]
revert -r314422

No need to check erealloc's return

13 years agoFixed bug that may dereferenced NULL pointer before checking
Xinchen Hui [Sun, 7 Aug 2011 13:19:04 +0000 (13:19 +0000)]
Fixed bug that may dereferenced NULL pointer before checking

13 years ago- Revert r314387
Felipe Pena [Sun, 7 Aug 2011 13:04:02 +0000 (13:04 +0000)]
- Revert r314387
  (property_info.name has the mangled name)

13 years agoInitialize variable with fixed value for avoiding compile warnings
Xinchen Hui [Sun, 7 Aug 2011 11:13:27 +0000 (11:13 +0000)]
Initialize variable with fixed value for avoiding compile warnings

13 years agoRemove unused variables
Pierrick Charron [Sun, 7 Aug 2011 06:37:22 +0000 (06:37 +0000)]
Remove unused variables

13 years agofunction_name cannot be false
Pierrick Charron [Sun, 7 Aug 2011 06:19:43 +0000 (06:19 +0000)]
function_name cannot be false

13 years agoclass entry is never used
Pierrick Charron [Sun, 7 Aug 2011 06:04:11 +0000 (06:04 +0000)]
class entry is never used

13 years agoPointer returned is never used
Pierrick Charron [Sun, 7 Aug 2011 05:46:31 +0000 (05:46 +0000)]
Pointer returned is never used

13 years agoInitialize temp with 0, avoiding compile warning
Xinchen Hui [Sun, 7 Aug 2011 05:24:11 +0000 (05:24 +0000)]
Initialize temp with 0, avoiding compile warning

13 years agoFixed the bug that temp may depend on a uninitialzed value
Xinchen Hui [Sun, 7 Aug 2011 05:19:55 +0000 (05:19 +0000)]
Fixed the bug that temp may depend on a uninitialzed value

13 years agoGood catch Coverity
Rasmus Lerdorf [Sun, 7 Aug 2011 03:25:19 +0000 (03:25 +0000)]
Good catch Coverity

13 years agoSince we have fci_cache = &fci_cache_local inside that block
Rasmus Lerdorf [Sun, 7 Aug 2011 00:50:46 +0000 (00:50 +0000)]
Since we have fci_cache = &fci_cache_local inside that block
and fci_cache is then later used outside the block, fci_cache_local
can't be block-scoped here

13 years agoI'm pretty sure you didn't mean to multiple by the size of a char* there
Rasmus Lerdorf [Sun, 7 Aug 2011 00:36:26 +0000 (00:36 +0000)]
I'm pretty sure you didn't mean to multiple by the size of a char* there
since that makes no sense. output is an array of char, not an array of
char*
Pierre, please review

13 years agoUse snprintf here instead to make the static analyzers happy.
Rasmus Lerdorf [Sun, 7 Aug 2011 00:25:22 +0000 (00:25 +0000)]
Use snprintf here instead to make the static analyzers happy.

13 years agoThese naked strcpy()s scare me
Rasmus Lerdorf [Sun, 7 Aug 2011 00:18:38 +0000 (00:18 +0000)]
These naked strcpy()s scare me

13 years agoUse property_info.name here instead since *name might be free'ed at this point
Rasmus Lerdorf [Sun, 7 Aug 2011 00:01:17 +0000 (00:01 +0000)]
Use property_info.name here instead since *name might be free'ed at this point
@dmitry please review

13 years agoAvoid a potential double-free here
Rasmus Lerdorf [Sat, 6 Aug 2011 23:42:52 +0000 (23:42 +0000)]
Avoid a potential double-free here

13 years agoNot our issue, but fixing here for now and reporting upstream
Rasmus Lerdorf [Sat, 6 Aug 2011 23:34:13 +0000 (23:34 +0000)]
Not our issue, but fixing here for now and reporting upstream

13 years agoFix another Coverity warning by initializing this to NULL prior to the strtok_r call
Rasmus Lerdorf [Sat, 6 Aug 2011 21:10:29 +0000 (21:10 +0000)]
Fix another Coverity warning by initializing this to NULL prior to the strtok_r call

13 years agochanged mapping of 0xa5 for SJIS-mac to prevent security attack.
Rui Hirokawa [Sat, 6 Aug 2011 15:23:06 +0000 (15:23 +0000)]
changed mapping of 0xa5 for SJIS-mac to prevent security attack.

13 years ago- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]
Felipe Pena [Sat, 6 Aug 2011 14:47:44 +0000 (14:47 +0000)]
- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]

13 years agofixed encoding conversion when http_input=auto.
Rui Hirokawa [Sat, 6 Aug 2011 12:19:16 +0000 (12:19 +0000)]
fixed encoding conversion when http_input=auto.

13 years agoimproved error handling for ill-formed utf-8 based on the Unicode recommendation.
Rui Hirokawa [Sat, 6 Aug 2011 04:25:44 +0000 (04:25 +0000)]
improved error handling for ill-formed utf-8 based on the Unicode recommendation.

13 years agoadded ill-formed utf-8 check for 0xEDXXXX.
Rui Hirokawa [Sat, 6 Aug 2011 02:22:15 +0000 (02:22 +0000)]
added ill-formed utf-8 check for 0xEDXXXX.

13 years agoupdated libmbfl version to 1.3.1.
Rui Hirokawa [Sat, 6 Aug 2011 01:48:45 +0000 (01:48 +0000)]
updated libmbfl version to 1.3.1.

13 years ago- Added missing PHP_FE_END/ZEND_FE_END
Felipe Pena [Sat, 6 Aug 2011 01:22:27 +0000 (01:22 +0000)]
- Added missing PHP_FE_END/ZEND_FE_END

13 years ago- Fixed bug #55313 (Number of retries not set when params specified)
Felipe Pena [Sat, 6 Aug 2011 00:59:21 +0000 (00:59 +0000)]
- Fixed bug #55313 (Number of retries not set when params specified)
  patch by: kevin at kevinlocke dot name

13 years agoefree match_sets on an error here - found by Coverity
Rasmus Lerdorf [Fri, 5 Aug 2011 22:39:40 +0000 (22:39 +0000)]
efree match_sets on an error here - found by Coverity

13 years agoAnother potential missing va_end() found by Coverity
Rasmus Lerdorf [Fri, 5 Aug 2011 22:26:16 +0000 (22:26 +0000)]
Another potential missing va_end() found by Coverity

13 years agoImprove test portabilty
Christopher Jones [Fri, 5 Aug 2011 22:18:50 +0000 (22:18 +0000)]
Improve test portabilty

13 years agoFix missing va_end() found by Coverity
Rasmus Lerdorf [Fri, 5 Aug 2011 22:18:42 +0000 (22:18 +0000)]
Fix missing va_end() found by Coverity

13 years agoFix for bug #55283 SSL options set by mysqli_ssl_set ignored for MySQLi persistent...
Andrey Hristov [Fri, 5 Aug 2011 13:39:30 +0000 (13:39 +0000)]
Fix for bug #55283 SSL options set by mysqli_ssl_set ignored for MySQLi persistent connections

13 years agoadded check for invalid utf-8 encoding (merge from libmbfl-1.3.1).
Rui Hirokawa [Fri, 5 Aug 2011 04:28:24 +0000 (04:28 +0000)]
added check for invalid utf-8 encoding (merge from libmbfl-1.3.1).

13 years agoremoved invalid 5,6 byte encoding from utf-8 based on Unicode 5.2.
Rui Hirokawa [Thu, 4 Aug 2011 12:11:04 +0000 (12:11 +0000)]
removed invalid 5,6 byte encoding from utf-8 based on Unicode 5.2.

13 years ago- Added missing check (thanks neweracracker at gmail dot com)
Felipe Pena [Thu, 4 Aug 2011 10:56:59 +0000 (10:56 +0000)]
- Added missing check (thanks neweracracker at gmail dot com)

13 years agoAdd mysqli_error_list() that returns an array with errors. Typically only
Andrey Hristov [Thu, 4 Aug 2011 09:51:26 +0000 (09:51 +0000)]
Add mysqli_error_list() that returns an array with errors. Typically only
one and just one for libmysql. mysqlnd can return generate more than one error
during its work and with mysqli_error() only the last error is being reported.
In the array returned by mysqli_error_list() / $mysqli->error_list, all errors will be found.
The list is reset when the next command is executed

13 years ago- Fixed possible efree(NULL) (bug #55296)
Felipe Pena [Thu, 4 Aug 2011 00:59:43 +0000 (00:59 +0000)]
- Fixed possible efree(NULL) (bug #55296)

13 years ago- update libcurl to 7.21.7
Pierre Joye [Wed, 3 Aug 2011 13:19:03 +0000 (13:19 +0000)]
- update libcurl to 7.21.7

13 years agoMF PHP_5_4.
Rui Hirokawa [Wed, 3 Aug 2011 12:09:28 +0000 (12:09 +0000)]
MF PHP_5_4.

13 years agoRemove a warning by explicitly compiling out a non-used variable
Andrey Hristov [Tue, 2 Aug 2011 15:30:58 +0000 (15:30 +0000)]
Remove a warning by explicitly compiling out a non-used variable

13 years agocompletely compile out a currently non-needed function
Andrey Hristov [Tue, 2 Aug 2011 14:18:56 +0000 (14:18 +0000)]
completely compile out a currently non-needed function

13 years agocompile out both parts of the code that are currently unused - fixes a compilation...
Andrey Hristov [Tue, 2 Aug 2011 14:02:21 +0000 (14:02 +0000)]
compile out both parts of the code that are currently unused - fixes a compilation warning

13 years agofix warnings due to change in zend_property_info (structure extended in the middle!!)
Andrey Hristov [Tue, 2 Aug 2011 13:41:20 +0000 (13:41 +0000)]
fix warnings due to change in zend_property_info (structure extended in the middle!!)

13 years agoFixed bug #55339 (Segfault with allow_call_time_pass_reference = Off)
Dmitry Stogov [Tue, 2 Aug 2011 07:38:23 +0000 (07:38 +0000)]
Fixed bug #55339 (Segfault with allow_call_time_pass_reference = Off)

13 years agoadded version number of libmbfl.
Rui Hirokawa [Tue, 2 Aug 2011 03:18:53 +0000 (03:18 +0000)]
added version number of libmbfl.

13 years agoadded new files of libmbfl 1.3.0.
Rui Hirokawa [Tue, 2 Aug 2011 02:50:11 +0000 (02:50 +0000)]
added new files of libmbfl 1.3.0.

13 years agoupdated libmbfl for version 1.3.0.
Rui Hirokawa [Tue, 2 Aug 2011 02:42:41 +0000 (02:42 +0000)]
updated libmbfl for version 1.3.0.

13 years ago- Fixed bug #55340 (segfault when using some arguments -- bug introduced by commit...
Jérôme Loyet [Tue, 2 Aug 2011 00:58:51 +0000 (00:58 +0000)]
- Fixed bug #55340 (segfault when using some arguments -- bug introduced by commit r313351)

13 years agoFixed bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o insta...
Dmitry Stogov [Mon, 1 Aug 2011 15:23:16 +0000 (15:23 +0000)]
Fixed bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)

13 years agoAdded support for Class::{expr}() syntax (Pierrick)
Dmitry Stogov [Mon, 1 Aug 2011 12:08:44 +0000 (12:08 +0000)]
Added support for Class::{expr}() syntax (Pierrick)

13 years agoFixed bug #50816 (Using class constants in array definition fails).
Dmitry Stogov [Mon, 1 Aug 2011 11:21:23 +0000 (11:21 +0000)]
Fixed bug #50816 (Using class constants in array definition fails).

13 years agofix params parsing
Stanislav Malyshev [Mon, 1 Aug 2011 04:29:37 +0000 (04:29 +0000)]
fix params parsing

13 years agofix tests
Stanislav Malyshev [Mon, 1 Aug 2011 03:42:02 +0000 (03:42 +0000)]
fix tests

13 years agofix failing tests
Stanislav Malyshev [Mon, 1 Aug 2011 01:00:57 +0000 (01:00 +0000)]
fix failing tests

13 years agofix termination in sha-512 too
Stanislav Malyshev [Sun, 31 Jul 2011 23:14:04 +0000 (23:14 +0000)]
fix termination in sha-512 too

13 years agoretore open_basedir check for unlink
Stanislav Malyshev [Sun, 31 Jul 2011 22:43:21 +0000 (22:43 +0000)]
retore open_basedir check for unlink

13 years agofix salt truncation bug in sha256
Stanislav Malyshev [Sun, 31 Jul 2011 21:47:03 +0000 (21:47 +0000)]
fix salt truncation bug in sha256

13 years ago- blowfish 1.2 update, 2nd part
Pierre Joye [Sun, 31 Jul 2011 20:50:09 +0000 (20:50 +0000)]
- blowfish 1.2 update, 2nd part

13 years ago- Fixed tests
Felipe Pena [Sun, 31 Jul 2011 18:51:15 +0000 (18:51 +0000)]
- Fixed tests

13 years agoFixed Bug #55214 use of __CLASS__ within trait returns trait name not class name...
Stefan Marr [Sun, 31 Jul 2011 18:18:56 +0000 (18:18 +0000)]
Fixed Bug #55214  use of __CLASS__ within trait returns trait name not class name [TRAITS] [DOC]

13 years agoAdded __TRAIT__ magic constant [TRAITS] [DOC]
Stefan Marr [Sun, 31 Jul 2011 17:39:30 +0000 (17:39 +0000)]
Added __TRAIT__ magic constant [TRAITS] [DOC]
# __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits.
# Since traits are not types, there are not many valid use cases, and trying
# to use __TRAIT__ to make traits more like classes is discouraged.

13 years agoAdded: SKIP when tokenizer extension is not available
Stefan Marr [Sun, 31 Jul 2011 16:35:09 +0000 (16:35 +0000)]
Added: SKIP when tokenizer extension is not available

13 years agoFixed test which was assuming that E_STRICT is not on by default.
Stefan Marr [Sun, 31 Jul 2011 16:15:40 +0000 (16:15 +0000)]
Fixed test which was assuming that E_STRICT is not on by default.

13 years ago- Fixed bug #55326 (Trait method copying misindentifies serialization callbacks)
Felipe Pena [Sun, 31 Jul 2011 12:27:47 +0000 (12:27 +0000)]
- Fixed bug #55326 (Trait method copying misindentifies serialization callbacks)
  patch by: Gustavo Lopes (cataphract@php)

13 years ago- Fix #55301 (sybase part, take #2) check if malloc succeded
Pierre Joye [Thu, 28 Jul 2011 21:16:51 +0000 (21:16 +0000)]
- Fix #55301 (sybase part, take #2) check if malloc succeded

13 years agoReverted Gopal's patch that allowed plugable interned string check
Dmitry Stogov [Thu, 28 Jul 2011 12:01:42 +0000 (12:01 +0000)]
Reverted Gopal's patch that allowed plugable interned string check
1. It introduced a significant slowdown
2. It didn't fix the real problem in APC (I'm goint to commit the fix)

13 years ago- Fix #55301 (mssql part) check if malloc succeded
Pierre Joye [Thu, 28 Jul 2011 11:01:04 +0000 (11:01 +0000)]
- Fix #55301 (mssql part) check if malloc succeded

13 years ago- Fix #55301 (sybase part) check if malloc succeded
Pierre Joye [Thu, 28 Jul 2011 10:58:28 +0000 (10:58 +0000)]
- Fix #55301 (sybase part) check if malloc succeded

13 years ago- Fix #55301 (url scanner part) check if malloc succeded
Pierre Joye [Thu, 28 Jul 2011 10:52:45 +0000 (10:52 +0000)]
- Fix #55301 (url scanner part) check if malloc succeded

13 years ago- Fix #55301 (readline part) check if malloc succeded
Pierre Joye [Thu, 28 Jul 2011 10:42:45 +0000 (10:42 +0000)]
- Fix #55301 (readline part) check if malloc succeded

13 years ago- Fix #55301 (interbase part) check if malloc succeded
Pierre Joye [Thu, 28 Jul 2011 10:39:08 +0000 (10:39 +0000)]
- Fix #55301 (interbase part) check if malloc succeded

13 years ago- Fix #55301 (pdo_odbc part) check if malloc succeded
Pierre Joye [Thu, 28 Jul 2011 10:37:04 +0000 (10:37 +0000)]
- Fix #55301 (pdo_odbc part) check if malloc succeded