mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
17 lines
398 B
PHP
17 lines
398 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));
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
bool(true)
|
|
===DONE===
|