]> granicus.if.org Git - php/log
php
13 years agoFix CID 1211, unused intern variable
Etienne Kneuss [Fri, 12 Aug 2011 21:46:40 +0000 (21:46 +0000)]
Fix CID 1211, unused intern variable

13 years agoprevent a crash if cs is NULL, which can happen with MS and lazy connections
Andrey Hristov [Fri, 12 Aug 2011 14:55:00 +0000 (14:55 +0000)]
prevent a crash if cs is NULL, which can happen with MS and lazy connections

13 years agoMySQL 5.6 fractional seconds and PS
Ulf Wendel [Fri, 12 Aug 2011 11:51:44 +0000 (11:51 +0000)]
MySQL 5.6 fractional seconds and PS

13 years agoAndrey, please have a look. Not sure if the test is correct, e.g. MySQL 5.5.3+ really...
Ulf Wendel [Fri, 12 Aug 2011 11:23:36 +0000 (11:23 +0000)]
Andrey, please have a look. Not sure if the test is correct, e.g. MySQL 5.5.3+ really needed?

13 years agoAndrey, please have a look. This should not cause errors.
Ulf Wendel [Fri, 12 Aug 2011 11:23:16 +0000 (11:23 +0000)]
Andrey, please have a look. This should not cause errors.

13 years agoOmitted GCC warning "comparison is always false"
Xinchen Hui [Fri, 12 Aug 2011 07:47:03 +0000 (07:47 +0000)]
Omitted GCC warning "comparison is always false"

13 years agoBug #55403: Don't set $_SERVER['HTTPS'] on unsecure connection
Uwe Schindler [Thu, 11 Aug 2011 20:25:24 +0000 (20:25 +0000)]
Bug #55403: Don't set $_SERVER['HTTPS'] on unsecure connection

13 years agoMissing file relating to previous commit
Ilia Alshanetsky [Thu, 11 Aug 2011 13:02:16 +0000 (13:02 +0000)]
Missing file relating to previous commit

13 years agoFixed bug #55399 (parse_url() incorrectly treats ':' as a valid path)
Ilia Alshanetsky [Thu, 11 Aug 2011 13:01:52 +0000 (13:01 +0000)]
Fixed bug #55399 (parse_url() incorrectly treats ':' as a valid path)

13 years ago- fix build (introduce by r314641)
Pierre Joye [Thu, 11 Aug 2011 07:11:39 +0000 (07:11 +0000)]
- fix build (introduce by r314641)

13 years agoFixed possible memory leak
Dmitry Stogov [Thu, 11 Aug 2011 06:38:42 +0000 (06:38 +0000)]
Fixed possible memory leak

13 years agoUse HOST_NAME_MAX constant here instead for the gethostname() func
Rasmus Lerdorf [Wed, 10 Aug 2011 17:40:56 +0000 (17:40 +0000)]
Use HOST_NAME_MAX constant here instead for the gethostname() func

13 years ago- Getting rid of the BOM.
Derick Rethans [Wed, 10 Aug 2011 16:34:39 +0000 (16:34 +0000)]
- Getting rid of the BOM.

13 years ago- Turn on html_errors by default again in php.ini-production like it was in
Derick Rethans [Wed, 10 Aug 2011 16:31:29 +0000 (16:31 +0000)]
- Turn on html_errors by default again in php.ini-production like it was in
  PHP 5.3, but only generate docref links when the docref_root INI setting is
  not empty.

13 years agoFix win32 build
Ilia Alshanetsky [Wed, 10 Aug 2011 15:59:32 +0000 (15:59 +0000)]
Fix win32 build

13 years agoFixed memset usage (identified by coverity)
Ilia Alshanetsky [Wed, 10 Aug 2011 15:30:07 +0000 (15:30 +0000)]
Fixed memset usage (identified by coverity)

13 years agorelax constraint
Andrey Hristov [Wed, 10 Aug 2011 14:12:24 +0000 (14:12 +0000)]
relax constraint

13 years agoFixed bug #55323 (SoapClient segmentation fault when XSD_TYPEKIND_EXTENSION contains...
Dmitry Stogov [Wed, 10 Aug 2011 13:44:48 +0000 (13:44 +0000)]
Fixed bug #55323 (SoapClient segmentation fault when XSD_TYPEKIND_EXTENSION contains itself)

13 years agoEliminated compiler's warnings
Xinchen Hui [Wed, 10 Aug 2011 11:59:11 +0000 (11:59 +0000)]
Eliminated compiler's warnings

13 years agofix coverity issue 1054: missing break/return
Michael Wallner [Wed, 10 Aug 2011 11:01:09 +0000 (11:01 +0000)]
fix coverity issue 1054: missing break/return

13 years agoRemove unused variable
Pierrick Charron [Wed, 10 Aug 2011 01:12:52 +0000 (01:12 +0000)]
Remove unused variable

13 years agoterminate timeouting processes with SIGKILL (9)
Nuno Lopes [Tue, 9 Aug 2011 21:53:44 +0000 (21:53 +0000)]
terminate timeouting processes with SIGKILL (9)

13 years agoFix building of pure C++ extensions as static
Scott MacVicar [Tue, 9 Aug 2011 18:12:06 +0000 (18:12 +0000)]
Fix building of pure C++ extensions as static

13 years agoFix typos in UPGRADING
Scott MacVicar [Tue, 9 Aug 2011 15:27:25 +0000 (15:27 +0000)]
Fix typos in UPGRADING

13 years agoMFH: update the news.
Rui Hirokawa [Tue, 9 Aug 2011 15:11:51 +0000 (15:11 +0000)]
MFH: update the news.

13 years agoMake static analyzers happy
Ilia Alshanetsky [Tue, 9 Aug 2011 14:11:56 +0000 (14:11 +0000)]
Make static analyzers happy

13 years agoMinimize stack usage and added missing dtors
Ilia Alshanetsky [Tue, 9 Aug 2011 13:10:57 +0000 (13:10 +0000)]
Minimize stack usage and added missing dtors

13 years agoAvoiding strcpy, strcat, sprintf usage to make static analyzer happy
Xinchen Hui [Tue, 9 Aug 2011 12:16:58 +0000 (12:16 +0000)]
Avoiding strcpy, strcat, sprintf usage to make static analyzer happy

13 years agoAvoiding strcpy usage, Make static analyzer happy
Xinchen Hui [Tue, 9 Aug 2011 09:35:42 +0000 (09:35 +0000)]
Avoiding strcpy usage, Make static analyzer happy

13 years agoUpdate SQLite3 to the latest version
Scott MacVicar [Tue, 9 Aug 2011 07:31:34 +0000 (07:31 +0000)]
Update SQLite3 to the latest version

13 years agoEliminated compiler's warnings and make static analyzer silent
Xinchen Hui [Tue, 9 Aug 2011 05:11:19 +0000 (05:11 +0000)]
Eliminated compiler's warnings and make static analyzer silent

13 years agoRemove unused variable
Pierrick Charron [Tue, 9 Aug 2011 02:42:25 +0000 (02:42 +0000)]
Remove unused variable

13 years agoRemove unused variable
Pierrick Charron [Tue, 9 Aug 2011 02:37:02 +0000 (02:37 +0000)]
Remove unused variable

13 years ago- Elided unused argument in internal linkage function.
Gustavo André dos Santos Lopes [Tue, 9 Aug 2011 00:40:45 +0000 (00:40 +0000)]
- Elided unused argument in internal linkage function.

13 years agoRemove unnecessary(no sense) memset and making the static analyzer silent
Xinchen Hui [Mon, 8 Aug 2011 16:57:46 +0000 (16:57 +0000)]
Remove unnecessary(no sense) memset and making the static analyzer silent

13 years agoAnother build fix relating to previous DOM commit
Ilia Alshanetsky [Mon, 8 Aug 2011 16:49:43 +0000 (16:49 +0000)]
Another build fix relating to previous DOM commit

13 years agoMFH: reduced memory footprint for codepages.
Rui Hirokawa [Mon, 8 Aug 2011 16:15:39 +0000 (16:15 +0000)]
MFH: 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:54:50 +0000 (14:54 +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 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 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 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 agoFixes build issues with ext/intl. This appears to be related to bug #55019, but since...
Gwynne Raskind [Sun, 7 Aug 2011 15:12:34 +0000 (15:12 +0000)]
Fixes build issues with ext/intl. This appears to be related to bug #55019, but since the functions in question are used elsewhere, the solution is to de-inline rather than to make them static inline.

13 years agofix for bug #55019
Gwynne Raskind [Sun, 7 Aug 2011 15:09:42 +0000 (15:09 +0000)]
fix for bug #55019

13 years agoAdd missing php.h include
Gwynne Raskind [Sun, 7 Aug 2011 15:07:53 +0000 (15:07 +0000)]
Add missing php.h include

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 agoFix build under Clang 2.9 - see LLVM bug #9164 (http://llvm.org/bugs/show_bug.cgi...
Gwynne Raskind [Sun, 7 Aug 2011 05:20:49 +0000 (05:20 +0000)]
Fix build under Clang 2.9 - see LLVM bug #9164 (http://llvm.org/bugs/show_bug.cgi?id=9164). Tested with GCC and Clang on Darwin and Ubuntu.

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 ago- Added change to UPGRADING
Felipe Pena [Sat, 6 Aug 2011 15:57:36 +0000 (15:57 +0000)]
- Added change to UPGRADING

13 years agoMFH: changed mapping of 0xa5 for SJIS-mac to prevent XSS.
Rui Hirokawa [Sat, 6 Aug 2011 15:24:31 +0000 (15:24 +0000)]
MFH: changed mapping of 0xa5 for SJIS-mac to prevent XSS.

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 agoMFH: fixed encoding conversion when http_input=auto.
Rui Hirokawa [Sat, 6 Aug 2011 12:19:33 +0000 (12:19 +0000)]
MFH: fixed encoding conversion when http_input=auto.

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

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

13 years agoMFH (updated libmbfl version to 1.3.1).
Rui Hirokawa [Sat, 6 Aug 2011 01:49:10 +0000 (01:49 +0000)]
MFH (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 agoMFH (added check for invalid utf-8 encoding).
Rui Hirokawa [Fri, 5 Aug 2011 04:34:16 +0000 (04:34 +0000)]
MFH (added check for invalid utf-8 encoding).

13 years agoMFH (removed obsolete/invalid 5,6 byte encoding of UTF-8 from mbstring/libmbfl based...
Rui Hirokawa [Thu, 4 Aug 2011 12:51:40 +0000 (12:51 +0000)]
MFH (removed obsolete/invalid 5,6 byte encoding of UTF-8 from mbstring/libmbfl 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)