mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
15 lines
374 B
PHP
15 lines
374 B
PHP
--TEST--
|
|
Test curl_init() function with $url parameter defined
|
|
--CREDITS--
|
|
Jean-Marc Fontaine <jmf@durcommefaire.net>
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>
|
|
--FILE--
|
|
<?php
|
|
$url = 'http://www.example.com/';
|
|
$ch = curl_init($url);
|
|
var_dump($url == curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|