Commit Graph

24688 Commits

Author SHA1 Message Date
Felipe Pena
3c4ff06ca7 - Fixed wrong abstract class identification (it was identified as a Trait) 2010-05-29 21:48:56 +00:00
Johannes Schlüter
97b7620aed - Add some folding marks 2010-05-29 21:28:24 +00:00
Johannes Schlüter
19afc82e28 - Make reflection aware of traits 2010-05-29 20:40:58 +00:00
Johannes Schlüter
1afd50766c - Fix tests 2010-05-29 20:34:25 +00:00
Dmitry Stogov
1fe3984cc4 Fixed bug #50976 (Soap headers Authorization not allowed) 2010-05-28 12:18:03 +00:00
Dmitry Stogov
5f678b58e6 Fixed bug #50762 (in WSDL mode Soap Header handler function only being called if defined in WSDL). (mephius at gmail dot com) 2010-05-28 10:52:16 +00:00
Kalle Sommer Nielsen
49d74ebc6e Fixed compiler warning (pointer mismatch) 2010-05-27 23:24:06 +00:00
Johannes Schlüter
4136336c02 Update credits 2010-05-27 22:51:28 +00:00
Ulf Wendel
cc3db5cc65 Open server bug: mysqlnd works around it, libmysql fails. Let's skip because MySQL Server version tests are tricky and error prone. 2010-05-27 13:01:17 +00:00
Andrey Hristov
1228c92303 Check before use, because mysqlnd can return NULL
and this will crash. However, this can happen only in case of OOM.
2010-05-27 12:44:10 +00:00
Andrey Hristov
3251e54f0f Don't use NULL pointer, always check before use 2010-05-27 12:39:12 +00:00
Ulf Wendel
b094e5296b Test fixes and updates to work with a wider range of MySQL server configs 2010-05-27 12:09:39 +00:00
Andrey Hristov
ae9ac28ec2 Fix possible crashes, in case of OOM, due to half-baken
objects.
2010-05-27 12:05:02 +00:00
Andrey Hristov
95d4f2ac66 Fix crashes in the allocator in case of OOM. 2010-05-27 12:00:48 +00:00
Andrey Hristov
4de0da5a56 Fix deallocation which can crash if the object is half-baken.
Happens during OOM.
2010-05-27 08:51:46 +00:00
Pierrick Charron
0b9263da93 Remove unused variable 2010-05-26 16:17:15 +00:00
Andrey Hristov
0e8b380941 Don't use conn->net without checking if it is NULL, because
it can be NULL in OOM conditions. This would cause a crash.
2010-05-26 13:47:43 +00:00
Andrey Hristov
44acaec542 Fix test 2010-05-26 13:36:49 +00:00
Andrey Hristov
f9ad56eab9 Remove a function that has no usage. The zval cache was disabled/removed
in 5.3.0-RC3.
2010-05-26 13:30:19 +00:00
Andrey Hristov
ce682f1b26 Add checks to check the underlying pointer in the resource.
It can happen that the underlying pointer is freed (like in
the case of connection reconnect), and then it cannot be allocated
anymore, which means that NULL will be used consequently by the
functions that fetch the resource and the crash is immediate.
2010-05-26 07:28:43 +00:00
Michael Wallner
89e93723fb Added support for object references in recursive serialize() calls. FR #36424 2010-05-26 07:24:37 +00:00
Felipe Pena
de531056f7 - Fixed bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline) 2010-05-26 02:18:17 +00:00
Felipe Pena
79d2aaf0f1 - Fixed bug #51905 (ReflectionParameter fails if default value is an array with an access to self::) 2010-05-26 00:00:58 +00:00
Andrey Hristov
433cb868d6 Handle the situation when MYSQLND_PROTOCOL's methods return NULL.
mysqlnd should not crash but gracefully return with an error.
2010-05-25 23:18:13 +00:00
Andrey Hristov
f4f5a50751 Handle the situation when mysql_init()/mysqlnd_init()
return NULL. It is a rare case of OOM but PHP shouldn't crash, if possible.
2010-05-25 22:55:10 +00:00
Felipe Pena
1168cdc323 - Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with constant array) 2010-05-25 22:46:17 +00:00
Andrey Hristov
708b31a510 Gracefully handle OOM in mysqlnd_stmt_init. Release the handle
and return NULL.
2010-05-25 22:42:25 +00:00
Andrey Hristov
6d434e70a4 Init should return status value because initialization can fail.
In this case mysqlnd_init() should return NULL to the end-user.
2010-05-25 22:40:47 +00:00
Andrey Hristov
b3c553fa99 Use the specialized macro for this case 2010-05-25 22:38:11 +00:00
Andrey Hristov
b434301f7b Use only memory that has been allocated 2010-05-25 22:36:33 +00:00
Andrey Hristov
decdfeeeb2 Access memory which was really allocated 2010-05-25 22:34:47 +00:00
Andrey Hristov
844b435655 Fix shared build 2010-05-25 21:54:21 +00:00
Andrey Hristov
954e7db644 Handle OOM in the code that generates PS Execute requests
to the server. Fixes crashes in case of OOM.
2010-05-25 19:19:29 +00:00
Andrey Hristov
52e31252fc Fix metadata duplicatin which wasn't crash-safe in case of OOM. 2010-05-25 18:14:37 +00:00
Dmitry Stogov
25893b643d Fixed compatibility with "Run Time Cache" patch 2010-05-25 11:38:48 +00:00
Martin Jansen
a389c77ce2 Changed test case to use our new dummy MX records. 2010-05-25 05:01:03 +00:00
Rasmus Lerdorf
a906125fec Check for -1 as well here 2010-05-24 23:52:11 +00:00
Rasmus Lerdorf
13a09194a9 Let's have a sane error message here instead of some cryptic zlib error 2010-05-24 23:27:39 +00:00
Ilia Alshanetsky
847f519d41 Fixed tests 2010-05-24 18:52:36 +00:00
Dmitry Stogov
f23e857676 Fixed ZTS build 2010-05-24 17:07:52 +00:00
Dmitry Stogov
c5237d82bf Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties 2010-05-24 14:11:39 +00:00
Kalle Sommer Nielsen
1cabc8cd3a Allow ereg to be built as shared on Windows
## I know that we may remove ereg in trunk, but since the core doesn't depend on 
## ereg, then I don't see any reason not to allow this
2010-05-24 07:44:00 +00:00
Sara Golemon
a0269a6a72 Ooops, return values... 2010-05-21 23:29:34 +00:00
Sara Golemon
6eb4218433 Add JSON_BIGINT_AS_STRING for json_decode() to parse large numbers
as strings rather than casting to double and loosing precision.
2010-05-21 22:59:58 +00:00
Andrey Hristov
a25482105e Check set->data for validity before using it.
Prevents crashes after OOM.
2010-05-21 13:37:18 +00:00
Andrey Hristov
476391c02e When OOM hits the wire, don't crash. 2010-05-21 13:06:52 +00:00
Andrey Hristov
7f44538a11 Fix for Bug #51870
PDO::fetchAll after a PDO::execute with bindings lead to a segv.

It is only in unreleased code and thus doesn't deserve a NEWS entry
2010-05-21 11:09:28 +00:00
Kalle Sommer Nielsen
e0498b0889 Remove this RC file, it should be named template.rc anyway and the default template.rc already covers what this .rc file did 2010-05-21 09:01:00 +00:00
Ilia Alshanetsky
6ce4737d94 Fixed tests 2010-05-20 22:53:38 +00:00
Ilia Alshanetsky
cf174c1366 Added support for JSON_NUMERIC_CHECK option in json_encode() that converts
numeric strings to integers.
2010-05-20 19:37:52 +00:00