8000 bug #41807 [HttpClient] fix Psr18Client when allow_url_fopen=0 (nicol… · symfony/symfony@d35c47b · GitHub
[go: up one dir, main page]

Skip to content

Commit d35c47b

Browse files
bug #41807 [HttpClient] fix Psr18Client when allow_url_fopen=0 (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] fix Psr18Client when allow_url_fopen=0 | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #41798 | License | MIT | Doc PR | - I didn't really know what `STREAM_IS_URL` was for, now I do :) Commits ------- 9745161 [HttpClient] fix Psr18Client when allow_url_fopen=0
2 parents ef06f33 + 9745161 commit d35c47b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/Response/StreamWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function createResource(ResponseInterface $response, HttpClientInt
5353
throw new \InvalidArgumentException(sprintf('Providing a client to "%s()" is required when the response doesn\'t have any "stream()" method.', __CLASS__));
5454
}
5555

56-
if (false === stream_wrapper_register('symfony', __CLASS__, \STREAM_IS_URL)) {
56+
if (false === stream_wrapper_register('symfony', __CLASS__)) {
5757
throw new \RuntimeException(error_get_last()['message'] ?? 'Registering the "symfony" stream wrapper failed.');
5858
}
5959

0 commit comments

Comments
 (0)
0