1--TEST-- 2Test curl_init() function with $url parameter defined 3--CREDITS-- 4Jean-Marc Fontaine <jmf@durcommefaire.net> 5--EXTENSIONS-- 6curl 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