Xinchen Hui
8bae5e220e
Wrong sizeof
2011-08-08 02:33:03 +00:00
Xinchen Hui
4e97a9fc3f
Remove no sense statements
2011-08-08 00:47:40 +00:00
Ilia Alshanetsky
ebefefeba8
Avoid strcpy() usage
2011-08-08 00:07:54 +00:00
Ilia Alshanetsky
04d7804aec
Fixes for variety of issues identified by coverity scan
2011-08-07 23:46:00 +00:00
Gwynne Raskind
5a64b06289
possible use without init fixed
2011-08-07 18:12:52 +00:00
Derick Rethans
20936960b5
- Fixed bug #55378 : binary number literal returns float number though its value
...
is enough small
2011-08-07 17:36:31 +00:00
Gwynne Raskind
dfe8fbca9e
Front- and back-port rev 314431 (missing php.h include)
2011-08-07 17:15:40 +00:00
Gwynne Raskind
b8a2da31b1
Back- and front-port fixes for #55019
2011-08-07 17:14:14 +00:00
Gwynne Raskind
9e9c9b3430
For 5.4, fix C++-style comments. For trunk, forward-port build fix.
2011-08-07 16:31:21 +00:00
Rasmus Lerdorf
7eb5bbbf65
Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
...
static string copies
2011-08-07 16:10:34 +00:00
Rasmus Lerdorf
d9845c2046
More signed 1-bit bitfields
2011-08-07 15:57:35 +00:00
Rasmus Lerdorf
25cdff4d75
Signed 1-bit bitfields make no sense
2011-08-07 15:52:46 +00:00
Rasmus Lerdorf
bfffb28ebf
Not an issue here, but a good habit to follow consistently. Never use strcpy/strcat.
2011-08-07 15:45:18 +00:00
Rasmus Lerdorf
97bc4c8403
Make static analyzers happy
2011-08-07 15:38:36 +00:00
Xinchen Hui
2ce3f11f4b
revert -r314422
...
No need to check erealloc's return
2011-08-07 14:25:30 +00:00
Xinchen Hui
a35462c71c
Fixed bug that may dereferenced NULL pointer before checking
2011-08-07 13:19:04 +00:00
Felipe Pena
f9ca0cacb3
- Revert r314387
...
(property_info.name has the mangled name)
2011-08-07 13:04:02 +00:00
Xinchen Hui
937f7fa876
Initialize variable with fixed value for avoiding compile warnings
2011-08-07 11:13:27 +00:00
Pierrick Charron
caff611cf3
Remove unused variables
2011-08-07 06:37:22 +00:00
Pierrick Charron
3751efa3dc
function_name cannot be false
2011-08-07 06:19:43 +00:00
Pierrick Charron
ae1746c876
class entry is never used
2011-08-07 06:04:11 +00:00
Pierrick Charron
21232aa9f2
Pointer returned is never used
2011-08-07 05:46:31 +00:00
Xinchen Hui
ad0cfd9865
Initialize temp with 0, avoiding compile warning
2011-08-07 05:24:11 +00:00
Xinchen Hui
66527e38cc
Fixed the bug that temp may depend on a uninitialzed value
2011-08-07 05:19:55 +00:00
Rasmus Lerdorf
2b874abb74
Good catch Coverity
2011-08-07 03:25:19 +00:00
Rasmus Lerdorf
c44c0490d5
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
2011-08-07 00:50:46 +00:00
Rasmus Lerdorf
8dc951194b
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
2011-08-07 00:36:26 +00:00
Rasmus Lerdorf
50d67ef7b5
Use snprintf here instead to make the static analyzers happy.
2011-08-07 00:25:22 +00:00
Rasmus Lerdorf
c70aa9436a
These naked strcpy()s scare me
2011-08-07 00:18:38 +00:00
Rasmus Lerdorf
71af9259e3
Use property_info.name here instead since *name might be free'ed at this point
...
@dmitry please review
2011-08-07 00:01:17 +00:00
Rasmus Lerdorf
1a9f66d6d4
Avoid a potential double-free here
2011-08-06 23:42:52 +00:00
Rasmus Lerdorf
facfed523d
Not our issue, but fixing here for now and reporting upstream
2011-08-06 23:34:13 +00:00
Rasmus Lerdorf
1bc34a491c
Fix another Coverity warning by initializing this to NULL prior to the strtok_r call
2011-08-06 21:10:29 +00:00
Rui Hirokawa
bc514c8339
changed mapping of 0xa5 for SJIS-mac to prevent security attack.
2011-08-06 15:23:06 +00:00
Felipe Pena
9480eace41
- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]
2011-08-06 14:47:44 +00:00
Rui Hirokawa
fc3e0ff1ec
fixed encoding conversion when http_input=auto.
2011-08-06 12:19:16 +00:00
Rui Hirokawa
70eb1c1267
improved error handling for ill-formed utf-8 based on the Unicode recommendation.
2011-08-06 04:25:44 +00:00
Rui Hirokawa
b3414d3c02
added ill-formed utf-8 check for 0xEDXXXX.
2011-08-06 02:22:15 +00:00
Rui Hirokawa
2bc6bcb96e
updated libmbfl version to 1.3.1.
2011-08-06 01:48:45 +00:00
Felipe Pena
9c289189d3
- Added missing PHP_FE_END/ZEND_FE_END
2011-08-06 01:22:27 +00:00
Felipe Pena
65e381ba1d
- Fixed bug #55313 (Number of retries not set when params specified)
...
patch by: kevin at kevinlocke dot name
2011-08-06 00:59:21 +00:00
Rasmus Lerdorf
c9342c81d6
efree match_sets on an error here - found by Coverity
2011-08-05 22:39:40 +00:00
Rasmus Lerdorf
dc1e148165
Another potential missing va_end() found by Coverity
2011-08-05 22:26:16 +00:00
Christopher Jones
68f785ac70
Improve test portabilty
2011-08-05 22:18:50 +00:00
Rasmus Lerdorf
1ac9192d46
Fix missing va_end() found by Coverity
2011-08-05 22:18:42 +00:00
Andrey Hristov
5f1107144a
Fix for bug #55283 SSL options set by mysqli_ssl_set ignored for MySQLi persistent connections
2011-08-05 13:39:30 +00:00
Rui Hirokawa
5bd3e8324d
added check for invalid utf-8 encoding (merge from libmbfl-1.3.1).
2011-08-05 04:28:24 +00:00
Rui Hirokawa
bab1e815d2
removed invalid 5,6 byte encoding from utf-8 based on Unicode 5.2.
2011-08-04 12:11:04 +00:00
Felipe Pena
8cf0864b8c
- Added missing check (thanks neweracracker at gmail dot com)
2011-08-04 10:56:59 +00:00
Andrey Hristov
11f198b203
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
2011-08-04 09:51:26 +00:00