Test: /ext/curl/tests/bug54798.phpt - Version 7.4.11        

Bug #54798 Segfault when CURLOPT_STDERR file pointer is closed before calling curl_exec
Submitted: 2011-05-17 16:25:32 Modified: 2011-09-12 09:19:17
From: shein Assigned: bjori
Status: Closed Package: cURL related
PHP Version: trunk-SVN-2011-05-17 (SVN) OS: Ubuntu Linux 11.04 x86

There are 2 different diffs reported by users for this test.

Count Diff
2 (67%)
001+ Server is not running 001- %AOk for CURLOPT_STDERR 002- 003- %AOk for CURLOPT_WRITEHEADER 004- 005- %AHello World! 006- Hello World!Ok for CURLOPT_FILE 007- 008- %AOk for CURLOPT_INFILE 009- ===DONE===
1 (33%)
001+ Warning: curl_exec(): CURLOPT_STDERR resource has gone away, resetting to stderr in %s/bug54798.php on line 24 002+ * Trying ::1:8964... 003+ * connect to ::1 port 8964 failed: Connection refused 004+ * Trying 127.0.0.1:8964... 005+ * Connected to localhost (127.0.0.1) port 8964 (#0) 006+ > GET / HTTP/1.1 007+ Host: localhost:8964 008+ Accept: */* 009+ 010+ * Mark bundle as not supporting multiuse 011+ < HTTP/1.1 200 OK 012+ < Host: localhost:8964 013+ < Date: Mon, 05 Oct 2020 23:59:31 GMT 014+ < Connection: close 015+ < X-Powered-By: PHP/7.4.11 016+ < Content-type: text/html; charset=UTF-8 017+ < 018+ * Closing connection 0 005- %AHello World! 006- Hello World!Ok for CURLOPT_FILE 021+ Warning: curl_exec(): CURLOPT_WRITEHEADER resource has gone away, resetting to default in %s/bug54798.php on line 24 024+ Warning: curl_exec(): CURLOPT_FILE resource has gone away, resetting to default in %s/bug54798.php on line 24 025+ Ok for CURLOPT_FILE 027+ Warning: curl_exec(): CURLOPT_INFILE resource has gone away, resetting to default in %s/bug54798.php on line 24