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

1.1     ! misho       1: --TEST--
        !             2: Test curl_error() & curl_errno() function with problematic protocol
        !             3: --CREDITS--
        !             4: TestFest 2009 - AFUP - Perrick Penet <perrick@noparking.net>
        !             5: --SKIPIF--
        !             6: <?php if (!extension_loaded("curl")) print "skip"; ?>
        !             7: --FILE--
        !             8: <?php
        !             9: 
        !            10: $url = uniqid()."://www.".uniqid().".".uniqid();
        !            11: $ch = curl_init();
        !            12: curl_setopt($ch, CURLOPT_URL, $url);
        !            13: 
        !            14: curl_exec($ch);
        !            15: var_dump(curl_error($ch));
        !            16: var_dump(curl_errno($ch));
        !            17: curl_close($ch);
        !            18: 
        !            19: 
        !            20: ?>
        !            21: --EXPECTF--
        !            22: %unicode|string%(%d) "%Srotocol%s"
        !            23: int(1)

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