]>
granicus.if.org Git - php/log
Pierrick Charron [Wed, 26 May 2010 16:17:15 +0000 (16:17 +0000)]
Remove unused variable
Dmitry Stogov [Wed, 26 May 2010 15:42:59 +0000 (15:42 +0000)]
Conditional compilation is replaced by macro
Andrey Hristov [Wed, 26 May 2010 13:47:43 +0000 (13:47 +0000)]
Don't use conn->net without checking if it is NULL, because
it can be NULL in OOM conditions. This would cause a crash.
Andrey Hristov [Wed, 26 May 2010 13:36:49 +0000 (13:36 +0000)]
Fix test
Andrey Hristov [Wed, 26 May 2010 13:30:19 +0000 (13:30 +0000)]
Remove a function that has no usage. The zval cache was disabled/removed
in 5.3.0-RC3.
Ilia Alshanetsky [Wed, 26 May 2010 11:00:05 +0000 (11:00 +0000)]
Fixed test
Andrey Hristov [Wed, 26 May 2010 07:28:43 +0000 (07:28 +0000)]
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.
Michael Wallner [Wed, 26 May 2010 07:24:37 +0000 (07:24 +0000)]
Added support for object references in recursive serialize() calls. FR #36424
Felipe Pena [Wed, 26 May 2010 02:18:17 +0000 (02:18 +0000)]
- Fixed bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline)
Felipe Pena [Wed, 26 May 2010 00:00:58 +0000 (00:00 +0000)]
- Fixed bug #51905 (ReflectionParameter fails if default value is an array with an access to self::)
Andrey Hristov [Tue, 25 May 2010 23:18:13 +0000 (23:18 +0000)]
Handle the situation when MYSQLND_PROTOCOL's methods return NULL.
mysqlnd should not crash but gracefully return with an error.
Andrey Hristov [Tue, 25 May 2010 22:55:10 +0000 (22:55 +0000)]
Handle the situation when mysql_init()/mysqlnd_init()
return NULL. It is a rare case of OOM but PHP shouldn't crash, if possible.
Felipe Pena [Tue, 25 May 2010 22:46:17 +0000 (22:46 +0000)]
- Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with constant array)
Andrey Hristov [Tue, 25 May 2010 22:42:25 +0000 (22:42 +0000)]
Gracefully handle OOM in mysqlnd_stmt_init. Release the handle
and return NULL.
Andrey Hristov [Tue, 25 May 2010 22:40:47 +0000 (22:40 +0000)]
Init should return status value because initialization can fail.
In this case mysqlnd_init() should return NULL to the end-user.
Andrey Hristov [Tue, 25 May 2010 22:38:11 +0000 (22:38 +0000)]
Use the specialized macro for this case
Andrey Hristov [Tue, 25 May 2010 22:36:33 +0000 (22:36 +0000)]
Use only memory that has been allocated
Andrey Hristov [Tue, 25 May 2010 22:34:47 +0000 (22:34 +0000)]
Access memory which was really allocated
Andrey Hristov [Tue, 25 May 2010 21:54:21 +0000 (21:54 +0000)]
Fix shared build
Antony Dovgal [Tue, 25 May 2010 20:16:14 +0000 (20:16 +0000)]
fix zend_std_get_static_property() in ZTS mode
Antony Dovgal [Tue, 25 May 2010 19:19:45 +0000 (19:19 +0000)]
use correct condition in the if
Andrey Hristov [Tue, 25 May 2010 19:19:29 +0000 (19:19 +0000)]
Handle OOM in the code that generates PS Execute requests
to the server. Fixes crashes in case of OOM.
Andrey Hristov [Tue, 25 May 2010 18:14:37 +0000 (18:14 +0000)]
Fix metadata duplicatin which wasn't crash-safe in case of OOM.
Dmitry Stogov [Tue, 25 May 2010 11:38:48 +0000 (11:38 +0000)]
Fixed compatibility with "Run Time Cache" patch
Dmitry Stogov [Tue, 25 May 2010 09:00:20 +0000 (09:00 +0000)]
- Interned string related callbacks moved turned from compiler_globals into real globals
- Updated API version number
Martin Jansen [Tue, 25 May 2010 05:01:03 +0000 (05:01 +0000)]
Changed test case to use our new dummy MX records.
Stanislav Malyshev [Tue, 25 May 2010 01:25:51 +0000 (01:25 +0000)]
fix C++ builds on Mac
Rasmus Lerdorf [Mon, 24 May 2010 23:52:11 +0000 (23:52 +0000)]
Check for -1 as well here
Rasmus Lerdorf [Mon, 24 May 2010 23:27:39 +0000 (23:27 +0000)]
Let's have a sane error message here instead of some cryptic zlib error
Ilia Alshanetsky [Mon, 24 May 2010 20:04:12 +0000 (20:04 +0000)]
Improved test
Ilia Alshanetsky [Mon, 24 May 2010 18:52:36 +0000 (18:52 +0000)]
Fixed tests
Ilia Alshanetsky [Mon, 24 May 2010 18:32:59 +0000 (18:32 +0000)]
Added support for numeric & scalar type hint as defined within
http://wiki.php.net/rfc/typecheckingstrictandweak RFC
Dmitry Stogov [Mon, 24 May 2010 17:07:52 +0000 (17:07 +0000)]
Fixed ZTS build
Dmitry Stogov [Mon, 24 May 2010 14:46:31 +0000 (14:46 +0000)]
Fixed exception handling in GOTO VM
Dmitry Stogov [Mon, 24 May 2010 14:11:39 +0000 (14:11 +0000)]
Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties
Kalle Sommer Nielsen [Mon, 24 May 2010 07:44:00 +0000 (07:44 +0000)]
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
Ilia Alshanetsky [Sun, 23 May 2010 18:09:32 +0000 (18:09 +0000)]
Allow arbitrary number of space characters between type-hint and method/function parameter
Sara Golemon [Fri, 21 May 2010 23:29:34 +0000 (23:29 +0000)]
Ooops, return values...
Sara Golemon [Fri, 21 May 2010 22:59:58 +0000 (22:59 +0000)]
Add JSON_BIGINT_AS_STRING for json_decode() to parse large numbers
as strings rather than casting to double and loosing precision.
Andrey Hristov [Fri, 21 May 2010 13:37:18 +0000 (13:37 +0000)]
Check set->data for validity before using it.
Prevents crashes after OOM.
Andrey Hristov [Fri, 21 May 2010 13:06:52 +0000 (13:06 +0000)]
When OOM hits the wire, don't crash.
Andrey Hristov [Fri, 21 May 2010 11:09:28 +0000 (11:09 +0000)]
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
Kalle Sommer Nielsen [Fri, 21 May 2010 09:01:00 +0000 (09:01 +0000)]
Remove this RC file, it should be named template.rc anyway and the default template.rc already covers what this .rc file did
Ilia Alshanetsky [Thu, 20 May 2010 22:53:38 +0000 (22:53 +0000)]
Fixed tests
Johannes Schlüter [Thu, 20 May 2010 20:55:33 +0000 (20:55 +0000)]
- Improved CLI Interactive readline shell (Johannes)
. Added cli.pager ini setting to set a pager for output.
. Added cli.prompt ini settingto configure the shell prompt.
. Added shortcut #inisetting=value to change ini settings at run-time.
. Don't terminate shell on fatal errors.
A pager can be a an shell command which will receive the command output on its
STDIN channel
php > #cli.pager=less
php > phpinfo();
(output will appear in the pager)
php > #cli.pager=grep -i readline
php > phpcredits();
Readline => Thies C. Arntzen
php > #cli.pager=
(output appears again direct on the terminal)
A prompt can contain a few escape sequences like
php > #cli.prompt=\e[032m\v \e[031m\b \e[34m\> \e[0m
5.3.99-dev php > //Colorful prompt with version number
A prompt can also contaian PHP code in backticks
php > #cli.prompt=`echo gethostname();` \b \>
guybrush php >
Ilia Alshanetsky [Thu, 20 May 2010 20:17:49 +0000 (20:17 +0000)]
Fixed a memory leak
Ilia Alshanetsky [Thu, 20 May 2010 19:37:52 +0000 (19:37 +0000)]
Added support for JSON_NUMERIC_CHECK option in json_encode() that converts
numeric strings to integers.
Derick Rethans [Thu, 20 May 2010 19:18:35 +0000 (19:18 +0000)]
- Added scalar typehinting.
Christopher Jones [Thu, 20 May 2010 17:55:58 +0000 (17:55 +0000)]
New current()/next() test
Felipe Pena [Thu, 20 May 2010 17:28:16 +0000 (17:28 +0000)]
- Added arginfo
Antony Dovgal [Thu, 20 May 2010 11:20:44 +0000 (11:20 +0000)]
fix ZTS build
Derick Rethans [Wed, 19 May 2010 20:20:10 +0000 (20:20 +0000)]
- Fixed name.
Jérôme Loyet [Wed, 19 May 2010 20:12:56 +0000 (20:12 +0000)]
change the startup libevent info log from notice to debug
Jérôme Loyet [Wed, 19 May 2010 20:11:56 +0000 (20:11 +0000)]
fix undefined value for log_level when not set in the conf file
Sara Golemon [Wed, 19 May 2010 20:05:09 +0000 (20:05 +0000)]
Add parameter to openssl_(en|de)crypt
Jérôme Loyet [Wed, 19 May 2010 18:37:25 +0000 (18:37 +0000)]
- set hard and soft limit (instead of only the soft limit) when setting rlimit_core or rlimit_files
- remove the debug log about getrlimit on the main process wich is meaningless when rlmit_* settings are set
Jérôme Loyet [Wed, 19 May 2010 11:29:31 +0000 (11:29 +0000)]
- #51821, fix --with-libevent-dir (patch by tony2001)
Michael Wallner [Wed, 19 May 2010 11:28:08 +0000 (11:28 +0000)]
* fixed bug #47842 sscanf() does not support 64-bit values
Pierre Joye [Tue, 18 May 2010 19:39:39 +0000 (19:39 +0000)]
- #51854, fix logic (patch by Tjerk)
Andrey Hristov [Tue, 18 May 2010 16:35:17 +0000 (16:35 +0000)]
And I thought I fixed that...
Part of the previous changeset - remove duplicated code/
The ifdefs were for debug purposes.
Andrey Hristov [Tue, 18 May 2010 15:02:50 +0000 (15:02 +0000)]
Fix comment
Pierre Joye [Tue, 18 May 2010 12:38:57 +0000 (12:38 +0000)]
- #51793, Add alpha argument to imagecolorset
Andrey Hristov [Tue, 18 May 2010 12:01:15 +0000 (12:01 +0000)]
NEWS entry
Andrey Hristov [Tue, 18 May 2010 11:50:31 +0000 (11:50 +0000)]
Remove duplicated code.
Use one centralized functions for data extraction.
Andrey Hristov [Tue, 18 May 2010 11:36:54 +0000 (11:36 +0000)]
Update test file
Andrey Hristov [Tue, 18 May 2010 10:39:26 +0000 (10:39 +0000)]
Add iterator to mysqli_result. Works both for :
- USE_RESULT, can be iterated only once, kind of forward iterator
- STORE_RESULT, can be iterated multiple times
Michael Wallner [Tue, 18 May 2010 07:25:29 +0000 (07:25 +0000)]
* fixed bug #49819: STDOUT losing data with posix_isatty()
Pierre Joye [Mon, 17 May 2010 20:09:42 +0000 (20:09 +0000)]
- #43233, sasl support for ldap on windows
Pierre Joye [Mon, 17 May 2010 18:55:35 +0000 (18:55 +0000)]
- #51844, checkdnsrr does not support types other than MX
Dmitry Stogov [Mon, 17 May 2010 07:50:33 +0000 (07:50 +0000)]
Fixed a possible crash because of recursive GC invocation
Rasmus Lerdorf [Sat, 15 May 2010 15:37:57 +0000 (15:37 +0000)]
typo
Felipe Pena [Fri, 14 May 2010 23:48:03 +0000 (23:48 +0000)]
- Fixed bug #51827 (Bad warning when register_shutdown_function called with wrong num of parameters)
Andrey Hristov [Fri, 14 May 2010 16:42:17 +0000 (16:42 +0000)]
result_meta local storage
Antony Dovgal [Fri, 14 May 2010 15:22:38 +0000 (15:22 +0000)]
fix external build
Andrey Hristov [Fri, 14 May 2010 15:11:56 +0000 (15:11 +0000)]
Allow overloading of mysqlnd_result_meta_init().
Add free space for future hooks.
Andrey Hristov [Fri, 14 May 2010 13:32:27 +0000 (13:32 +0000)]
Export MYSQLND_PROTOCOL methods
Andrey Hristov [Fri, 14 May 2010 13:18:39 +0000 (13:18 +0000)]
- Give possibility to overload mysqlnd_result_init().
- Always use conn->m->stmt_init instead of mysqlnd_stmt_init()
Andrey Hristov [Fri, 14 May 2010 13:04:33 +0000 (13:04 +0000)]
OOM fixes
Pierrick Charron [Fri, 14 May 2010 06:29:54 +0000 (06:29 +0000)]
Added support for CURLOPT_MAX_RECV_SPEED_LARGE and CURLOPT_MAX_SEND_SPEED_LARGE.
Andrey Hristov [Thu, 13 May 2010 15:29:08 +0000 (15:29 +0000)]
- initialize some variables
- initialize the methods in a shorter way, use the compiler.
= on structures copies them. Allows also exportability of
the methods.
Andrey Hristov [Thu, 13 May 2010 14:15:23 +0000 (14:15 +0000)]
Export the methods of MYSQLND_NET
Andrey Hristov [Thu, 13 May 2010 11:16:11 +0000 (11:16 +0000)]
Export the result_metadata methods to external modules.
Andrey Hristov [Thu, 13 May 2010 11:06:00 +0000 (11:06 +0000)]
Somehow missed to commit this, for better fix for #51605
Andrey Hristov [Thu, 13 May 2010 11:05:09 +0000 (11:05 +0000)]
Better fix for #51605
Dmitry Stogov [Thu, 13 May 2010 08:34:06 +0000 (08:34 +0000)]
Fixed a possible resource destruction issues in shm_put_var()
Dmitry Stogov [Thu, 13 May 2010 08:09:54 +0000 (08:09 +0000)]
Fixed a possible memory corruption in ArrayObject::uasort() Reported by Stefan Esser
Felipe Pena [Thu, 13 May 2010 02:13:30 +0000 (02:13 +0000)]
- Fixed bug #51791 (constant() aborts execution when fail to check undefined constant)
Christopher Jones [Wed, 12 May 2010 21:34:32 +0000 (21:34 +0000)]
Errors using reserved words as methods
Jérôme Loyet [Wed, 12 May 2010 18:29:09 +0000 (18:29 +0000)]
Fix #51799, when glob returns nothing, it was handle as an error instead of a warning.
Sara Golemon [Wed, 12 May 2010 16:42:48 +0000 (16:42 +0000)]
Rename JSON_Serializable to JsonSerializable per ML discussion
Dmitry Stogov [Wed, 12 May 2010 11:32:25 +0000 (11:32 +0000)]
Fixed a possible memory corruption in parse_str(). Reported by Stefan Esser
Dmitry Stogov [Wed, 12 May 2010 11:10:06 +0000 (11:10 +0000)]
Fixed a possible information leak because of interruption of XOR operator
Dmitry Stogov [Wed, 12 May 2010 11:04:57 +0000 (11:04 +0000)]
Fixed a possible memory corruption in pack(). Reported by Stefan Esser
Michael Wallner [Wed, 12 May 2010 09:37:25 +0000 (09:37 +0000)]
Fixed bug #51725 (xmlrpc_get_type() returns true on invalid dates). (Mike)
Christopher Jones [Tue, 11 May 2010 18:25:44 +0000 (18:25 +0000)]
Restructure into PHP/PECL/PEAR component areas (at the expense of duplication)
Arnaud Le Blanc [Tue, 11 May 2010 16:40:03 +0000 (16:40 +0000)]
NEWS
Arnaud Le Blanc [Tue, 11 May 2010 16:39:07 +0000 (16:39 +0000)]
- code cleanups
- cleanup progress data from session vars as soon as all
post data has been readden (upload_progress.cleanup
ini setting allows to disable this)
Dmitry Stogov [Tue, 11 May 2010 16:09:43 +0000 (16:09 +0000)]
Fixed bug #49893 (Crash while creating an instance of Zend_Mail_Storage_Pop3)
Andrey Hristov [Tue, 11 May 2010 15:55:07 +0000 (15:55 +0000)]
One more time fixing the tests, lets use $IS_MYSQLND which comes from connect.inc
Andrey Hristov [Tue, 11 May 2010 15:49:03 +0000 (15:49 +0000)]
Fix for mysqli_stmt_execute.phpt, should be ran only against
4.1+ servers. MySQL's SLEEP function is available since 5.0.12, thus
the tests that use this function should be ran only if the server
is at least 5.0.12.