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

Test Failure Report for ext/curl/tests/curl_copy_handle_basic_008.phpt ('Test curl_copy_handle() with CURLOPT_PROGRESSFUNCTION')

Script

1: <?php
2:   
include 'server.inc';
3:   
$host curl_cli_server_start();
4:
5:   
$url "{$host}/get.php";
6:   
$ch curl_init($url);
7:
8:   
curl_setopt($chCURLOPT_NOPROGRESS0);
9:   
curl_setopt($chCURLOPT_RETURNTRANSFER1);
10:   
curl_setopt($chCURLOPT_PROGRESSFUNCTION, function() { });
11:   
$ch2 curl_copy_handle($ch);
12:   echo 
curl_exec($ch), PHP_EOL;
13:   unset(
$ch);
14:   echo 
curl_exec($ch2);
15:
16:
?>
17:

Expected

Hello World!
Hello World!
Hello World!
Hello World!

Output

<!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>

<!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+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
002+ <html><head>
003+ <title>404 Not Found</title>
004+ </head><body>
001- Hello World!
002- Hello World!
003- Hello World!
004- Hello World!
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+ <!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>

 

Generated at Fri, 11 Jan 2019 15:03:22 +0000 (7 days ago)

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