PHP  
 PHP_7_3
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/curl/tests/bug66109.phpt ('Bug #66109 (Option CURLOPT_CUSTOMREQUEST can't be reset to default.)')

Script

1: <?php
2:
include 'server.inc';
3:
$host curl_cli_server_start();
4:
$ch curl_init();
5:
curl_setopt($chCURLOPT_URL"{$host}/get.php?test=method");
6:
curl_setopt($chCURLOPT_RETURNTRANSFER1);
7:
8:
curl_setopt($chCURLOPT_CUSTOMREQUEST'DELETE');
9:
var_dump(curl_exec($ch));
10:
11:
curl_setopt($chCURLOPT_CUSTOMREQUESTNULL);
12:
var_dump(curl_exec($ch));
13:
14:
curl_close($ch);
15:
16:
?>
17:

Expected

string(6) "DELETE"
string(3) "GET"

Output

string(215) "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /responder/get.php was not found on this server.</p>
</body></html>
"
string(215) "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /responder/get.php was not found on this server.</p>
</body></html>
"

Diff

001+ string(215) "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
002+ <html><head>
001- string(6) "DELETE"
002- string(3) "GET"
003+ <title>404 Not Found</title>
004+ </head><body>
005+ <h1>Not Found</h1>
006+ <p>The requested URL /responder/get.php was not found on this server.</p>
007+ </body></html>
008+ "
009+ string(215) "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
010+ <html><head>
011+ <title>404 Not Found</title>
012+ </head><body>
013+ <h1>Not Found</h1>
014+ <p>The requested URL /responder/get.php was not found on this server.</p>
015+ </body></html>
016+ "

 

Generated at Thu, 14 Nov 2019 02:24:20 +0000 (11 hours ago)

Copyright © 2005-2019 The PHP Group
All rights reserved.