PHP  
 PHP_5_6
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_basic_019.phpt ('Test curl_getinfo() function with CURLINFO_EFFECTIVE_URL parameter')

Script

1: <?php
2:   
include 'server.inc';
3:   
$host curl_cli_server_start();
4:
5:   
$url "http://{$host}/get.php?test=";
6:   
$ch  curl_init();
7:
8:   
curl_setopt($chCURLOPT_URL$url);
9:   
curl_exec($ch);
10:   
$info curl_getinfo($chCURLINFO_EFFECTIVE_URL);
11:   
var_dump($url == $info);
12:   
curl_close($ch);
13:
?>
14:
===DONE===
15:

Expected

Hello World!
Hello World!bool(true)
===DONE===

Output

bool(true)
===DONE===

Diff

001+ bool(true)
001- Hello World!
002- Hello World!bool(true)

 

Generated at Sat, 19 Jul 2014 23:25:50 +0000 (9 days ago)

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