- Updated timezone database to version 2009.9 (2009i) (Derick)
- Added "ignore_errors" option to http fopen wrapper. (David Zulke, Sara)
+- Fixed bug #48518 (curl crashes when writing into invalid file handle). (Tony)
- Fixed bug #48469 (ldap_get_entries() leaks memory on empty search results).
(Patrick)
- Fixed bug #48456 (CPPFLAGS not restored properly in phpize.m4).
switch (option) {
case CURLOPT_FILE:
if (((php_stream *) what)->mode[0] != 'r') {
+ zend_list_addref(Z_LVAL_PP(zvalue));
ch->handlers->write->fp = fp;
ch->handlers->write->method = PHP_CURL_FILE;
} else {
break;
case CURLOPT_WRITEHEADER:
if (((php_stream *) what)->mode[0] != 'r') {
+ zend_list_addref(Z_LVAL_PP(zvalue));
ch->handlers->write_header->fp = fp;
ch->handlers->write_header->method = PHP_CURL_FILE;
} else {