xref: /PHP-7.3/ext/curl/tests/curl_basic_015.phpt (revision 782352c5)
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===DONE===
14--EXPECT--
15bool(true)
16===DONE===
17