summaryrefslogtreecommitdiff
path: root/ext/curl/tests/curl_basic_015.phpt
blob: 00ad7c9b1d33ae6d9aca2c53b68d42f5acbfd285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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===
--EXPECT--
bool(true)
===DONE===