Annotation of embedaddon/php/ext/curl/tests/curl_basic_007.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test curl_error() & curl_errno() function without url
! 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: //In January 2008 , level 7.18.0 of the curl lib, many of the messages changed.
! 11: //The final crlf was removed. This test is coded to work with or without the crlf.
! 12:
! 13: $ch = curl_init();
! 14:
! 15: curl_exec($ch);
! 16: var_dump(curl_error($ch));
! 17: var_dump(curl_errno($ch));
! 18: curl_close($ch);
! 19:
! 20:
! 21: ?>
! 22: --EXPECTF--
! 23: %string|unicode%(%d) "No URL set!%w"
! 24: int(3)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>