xref: /PHP-5.4/ext/curl/tests/curl_basic_007.phpt (revision 610c7fbe)
1--TEST--
2Test curl_error() & curl_errno() function without url
3--CREDITS--
4TestFest 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
15curl_exec($ch);
16var_dump(curl_error($ch));
17var_dump(curl_errno($ch));
18curl_close($ch);
19
20
21?>
22--EXPECTF--
23%string|unicode%(%d) "No URL set!%w"
24int(3)
25