mirror of
https://github.com/php/php-src.git
synced 2026-03-30 04:02:19 +02:00
Current run-tests.php script produces the `*.php` files from the *.phpt. So all *.php files in tests folders are ignored by Git. To avoid confusion and to for bettere consistency this patch renames two remaining tests/*/*.php files to *.inc and *.phar as current practice in *.phpt files. - The `ext/curl/tests/resonder/get.php` to .inc extension - The `ext/phar/tests/files/pear2coverage.phar.php` to .phar extension
26 lines
540 B
PHP
26 lines
540 B
PHP
--TEST--
|
|
Test curl_getinfo() function with CURLINFO_EFFECTIVE_URL parameter
|
|
--CREDITS--
|
|
Jean-Marc Fontaine <jmf@durcommefaire.net>
|
|
--SKIPIF--
|
|
<?php include 'skipif.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
include 'server.inc';
|
|
$host = curl_cli_server_start();
|
|
|
|
$url = "http://{$host}/get.inc?test=";
|
|
$ch = curl_init();
|
|
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_exec($ch);
|
|
$info = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
|
|
var_dump($url == $info);
|
|
curl_close($ch);
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
Hello World!
|
|
Hello World!bool(true)
|
|
===DONE===
|