diff options
| author | Hannes Magnusson <bjori@php.net> | 2011-09-09 08:28:57 +0000 |
|---|---|---|
| committer | Hannes Magnusson <bjori@php.net> | 2011-09-09 08:28:57 +0000 |
| commit | 0cac42b4829c604f00f8ea25a78baad7147d6b35 (patch) | |
| tree | 1752b8015fa64a21ec2328804e8b9fed2255107f | |
| parent | 23010d52adb0aebd735f9542a52e9904ea01564e (diff) | |
| download | php-git-0cac42b4829c604f00f8ea25a78baad7147d6b35.tar.gz | |
Being smart and cleanup/rename/modify tests seconds before committing isn't very smart.
| -rw-r--r-- | ext/curl/tests/bug54798.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/curl/tests/bug54798.phpt b/ext/curl/tests/bug54798.phpt index eac9662d09..6fd85131d3 100644 --- a/ext/curl/tests/bug54798.phpt +++ b/ext/curl/tests/bug54798.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #48203 (Crash when file pointers passed to curl are closed before calling curl_exec) +Bug #54798 (Segfault when CURLOPT_STDERR file pointer is closed before calling curl_exec) --SKIPIF-- <?php if (!extension_loaded("curl")) { @@ -13,7 +13,7 @@ if (false === getenv('PHP_CURL_HTTP_REMOTE_SERVER')) { <?php function checkForClosedFilePointer($curl_option, $description) { - $fp = fopen(dirname(__FILE__) . '/bug48203.tmp', 'w+'); + $fp = fopen(dirname(__FILE__) . '/bug54798.tmp', 'w+'); $ch = curl_init(); @@ -53,14 +53,14 @@ foreach($options_to_check as $option) { ?> --CLEAN-- -<?php @unlink(dirname(__FILE__) . '/bug48203.tmp'); ?> +<?php @unlink(dirname(__FILE__) . '/bug54798.tmp'); ?> --EXPECTF-- -Warning: curl_exec(): CURLOPT_STDERR resource has gone away, resetting to stderr in %sbug48203_2.php on line %d +Warning: curl_exec(): CURLOPT_STDERR resource has gone away, resetting to stderr in %sbug54798.php on line %d * About to connect() %a * Closing connection #%d Ok for CURLOPT_STDERR Ok for CURLOPT_WRITEHEADER Ok for CURLOPT_FILE -Warning: curl_exec(): CURLOPT_INFILE resource has gone away, resetting to default in %sbug48203_2.php on line %d +Warning: curl_exec(): CURLOPT_INFILE resource has gone away, resetting to default in %sbug54798.php on line %d Ok for CURLOPT_INFILE |
