curl_basic_007.phpt 493 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Test curl_error() & curl_errno() function without url
  3. --CREDITS--
  4. TestFest 2009 - AFUP - Perrick Penet <perrick@noparking.net>
  5. --EXTENSIONS--
  6. curl
  7. --FILE--
  8. <?php
  9. //In January 2008 , level 7.18.0 of the curl lib, many of the messages changed.
  10. //The final crlf was removed. This test is coded to work with or without the crlf.
  11. $ch = curl_init();
  12. curl_exec($ch);
  13. var_dump(curl_error($ch));
  14. var_dump(curl_errno($ch));
  15. curl_close($ch);
  16. ?>
  17. --EXPECTF--
  18. string(%d) "No URL set%A"
  19. int(3)