xref: /PHP-8.0/ext/curl/tests/curl_basic_015.phpt (revision a555cc0b)
1--TEST--
2Test curl_init() function with $url parameter defined
3--CREDITS--
4Jean-Marc Fontaine <jmf@durcommefaire.net>
5--SKIPIF--
6<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>
7--FILE--
8<?php
9  $url = 'http://www.example.com/';
10  $ch  = curl_init($url);
11  var_dump($url == curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
12?>
13--EXPECT--
14bool(true)
15