Test: /ext/curl/tests/bug48203.phpt - Version 7.4.21        

Bug #48203 crash when CURLOPT_STDERR is set to regular file
Submitted: 2009-05-09 13:44:05 Modified: 2011-09-08 14:38:23
From: php-bug Assigned: bjori
Status: Closed Package: cURL related
PHP Version: 5.*, 6CVS (2009-05-09) OS: *

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

Count Diff
1 (50%)
003+ * Trying 10.3.254.12... 004+ * TCP_NODELAY set 005+ * Connected to (nil) (10.3.254.12) port 3128 (#0) 003- Hello World! 004- Hello World!%A 005- Ok 006+ * Proxy auth using Basic with user 'ldap_user' 007+ > GET http://localhost:8964/ HTTP/1.1 008+ Host: localhost:8964 009+ Proxy-Authorization: Basic bGRhcF91c2VyOjRDZlZiMTR4 010+ Accept: */* 011+ Proxy-Connection: Keep-Alive 012+ 013+ * HTTP 1.0, assume close after body 014+ < HTTP/1.0 504 Gateway Timeout 015+ < Pragma: no-cache 016+ < Connection: close 017+ < Content-Type: text/html; charset=utf-8 018+ < 019+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 020+ <html> 021+ <head> 022+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 023+ <title>Connection to server failed</title> 024+ <style type="text/css"> 025+ <!-- 026+ body { 027+ font-family: sans-serif; 028+ padding: 1em; 029+ } 030+ .mainBody { 031+ max-width: 600px; 032+ margin: auto; 033+ } 034+ .header { 035+ border-bottom: 3px solid #e73a27; 036+ line-height: 1.5em; 037+ padding-bottom: 1em; 038+ } 039+ h1 { 040+ color: #808080; 041+ font-size: 1.5em; 042+ line-height: 1em; 043+ } 044+ span { 045+ color: #000000; 046+ font-size: 1em; 047+ } 048+ .footer { 049+ text-align: right; 050+ padding-top: 3px; 051+ color: #808080; 052+ font-weight: bold; 053+ } 054+ .footer i { 055+ font-style: normal; 056+ } 057+ .nocss { 058+ display: none; 059+ } 060+ --> 061+ </style> 062+ </head> 063+ <body> 064+ <div class="mainBody"> 065+ <div class="header"> 066+ <h1>Connection to server failed</h1> 067+ <span>Connection actively refused by the server</span> 068+ </div> 069+ <div class="footer"><span class='nocss'><br /></span><i>This message was created by Kerio Control Proxy</i></div> 070+ </div> 071+ </body> 072+ </html> 073+ * Curl_http_done: called premature == 0 074+ * Closing connection 0 075+ Ok
1 (50%)
001- Warning: curl_exec(): CURLOPT_STDERR resource has gone away, resetting to stderr in %s on line %d 003- Hello World! 004- Hello World!%A 005- Ok