Annotation of embedaddon/php/ext/curl/tests/curl_basic_015.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test curl_init() function with $url parameter defined
        !             3: --CREDITS--
        !             4: Jean-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: --EXPECTF--
        !            15: bool(true)
        !            16: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>