File tree 2 files changed +16
-15
lines changed
2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 7
7
--FILE--
8
8
<?php
9
9
10
- $ url = substr (uniqid (),0 ,7 )."://www. " .uniqid ().". " .uniqid ();
10
+ // Make sure the scheme always starts with an alphabetic character.
11
+ $ url = 'a ' . substr (uniqid (),0 ,6 )."://www.example.com " ;
11
12
$ ch = curl_init ();
12
13
curl_setopt ($ ch , CURLOPT_URL , $ url );
13
14
Original file line number Diff line number Diff line change @@ -44,25 +44,25 @@ zend_leak_variable(do_stuff("php://memory"));
44
44
45
45
echo "\nDone. \n" ;
46
46
?>
47
- --EXPECTF --
48
- temp stream (close after):
47
+ --EXPECTREGEX --
48
+ temp stream \ (close after\ ):
49
49
About to rewind!
50
- * Couldn't open file /i_dont_exist/
51
- * Closing connection%A%d
50
+ (\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \ /i_dont_exist\ /
51
+ \ * Closing connection( -?\d+)?
52
52
53
- memory stream (close after):
53
+ memory stream \ (close after\ ):
54
54
About to rewind!
55
- * Couldn't open file /i_dont_exist/
56
- * Closing connection%A%d
55
+ (\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \ /i_dont_exist\ /
56
+ \ * Closing connection( -?\d+)?
57
57
58
- temp stream (leak):
58
+ temp stream \ (leak\ ):
59
59
About to rewind!
60
- * Couldn't open file /i_dont_exist/
61
- * Closing connection%A%d
60
+ (\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \ /i_dont_exist\ /
61
+ \ * Closing connection( -?\d+)?
62
62
63
- memory stream (leak):
63
+ memory stream \ (leak\ ):
64
64
About to rewind!
65
- * Couldn't open file /i_dont_exist/
66
- * Closing connection%A%d
65
+ (\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \ /i_dont_exist\ /
66
+ \ * Closing connection( -?\d+)?
67
67
68
- Done.
68
+ Done\ .
You can’t perform that action at this time.
0 commit comments