@@ -7,15 +7,15 @@ if (!function_exists('zend_leak_variable'))
7
7
/* unfortunately no standard function does a cast to FILE*, so we need
8
8
* curl to test this */
9
9
if (!extension_loaded ("curl " )) exit ("skip curl extension not loaded " );
10
- $ handle =curl_init ('http ://127.0.0.1:37349 / ' );
10
+ $ handle =curl_init ('file :///i_dont_exist / ' );
11
11
curl_setopt ($ handle , CURLOPT_VERBOSE , true );
12
12
curl_setopt ($ handle , CURLOPT_RETURNTRANSFER , true );
13
13
if (!@curl_setopt ($ handle , CURLOPT_STDERR , fopen ("php://memory " , "w+ " )))
14
14
die ("skip fopencookie not supported on this platform " );
15
15
--FILE --
16
16
<?php
17
17
function do_stuff ($ url ) {
18
- $ handle =curl_init ('http ://127.0.0.1:37349 / ' );
18
+ $ handle =curl_init ('file :///i_dont_exist / ' );
19
19
curl_setopt ($ handle , CURLOPT_VERBOSE , true );
20
20
curl_setopt ($ handle , CURLOPT_RETURNTRANSFER , true );
21
21
curl_setopt ($ handle , CURLOPT_STDERR , $ o = fopen ($ url , "w+ " ));
@@ -42,22 +42,22 @@ echo "\nDone.\n";
42
42
--EXPECTF --
43
43
temp stream (close after):
44
44
About to rewind!
45
- * %ATrying 127 .0 .0 . 1. . . %AConnection refused%A
45
+ * Couldn ' t open file /i_dont_exist/
46
46
* Closing connection%A%d
47
47
48
48
memory stream (close after):
49
49
About to rewind!
50
- * %ATrying 127.0 . 0.1 . . .%AConnection refused%A
50
+ * Couldn ' t open file /i_dont_exist/
51
51
* Closing connection%A%d
52
52
53
53
temp stream (leak):
54
54
About to rewind!
55
- * %ATrying 127.0 . 0.1 . . .%AConnection refused%A
55
+ * Couldn ' t open file /i_dont_exist/
56
56
* Closing connection%A%d
57
57
58
58
memory stream (leak):
59
59
About to rewind!
60
- * %ATrying 127.0 . 0.1 . . .%AConnection refused%A
60
+ * Couldn ' t open file /i_dont_exist/
61
61
* Closing connection%A%d
62
62
63
63
Done.
0 commit comments