Fixed bug #69831 (Segmentation fault in curl_getinfo)

This commit is contained in:
Xinchen Hui 2015-06-14 23:10:21 +08:00
parent f1ae57f155
commit b7e477a8f9
2 changed files with 5 additions and 1 deletions

4
NEWS
View file

@ -18,6 +18,10 @@ PHP NEWS
. Fixed Bug #69796 (mysqli_stmt::fetch doesn't assign null values to
bound variables). (Laruence);
- Curl:
. Fixed bug #69831 (Segmentation fault in curl_getinfo). (im dot denisenko at
yahoo dot com)
- PDO_pgsql:
. Fixed bug #69752 (PDOStatement::execute() leaks memory with DML
Statements when closeCuror() is u). (Philip Hofstetter)

View file

@ -3008,7 +3008,7 @@ PHP_FUNCTION(curl_getinfo)
}
#endif
if (ch->header.str) {
CAASTR("request_header", ch->header.str);
CAASTR("request_header", zend_string_copy(ch->header.str));
}
} else {
switch (option) {