xref: /PHP-8.4/ext/curl/tests/curl_basic_007.phpt (revision 722e9b9f)
1--TEST--
2Test curl_error() & curl_errno() function without url
3--CREDITS--
4TestFest 2009 - AFUP - Perrick Penet <perrick@noparking.net>
5--EXTENSIONS--
6curl
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--
23string(%d) "No URL set%A"
24int(3)
25