summaryrefslogtreecommitdiff
path: root/ext/standard/tests/http/server.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/http/server.inc')
-rw-r--r--ext/standard/tests/http/server.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/tests/http/server.inc b/ext/standard/tests/http/server.inc
index b9ade0e9f0..db66c3dd13 100644
--- a/ext/standard/tests/http/server.inc
+++ b/ext/standard/tests/http/server.inc
@@ -54,13 +54,13 @@ function http_server($socket_string, array $files, &$output = null) {
if (!stream_select($r, $w, $e, 1)) continue;
$line = stream_get_line($sock, 8192, "\r\n");
- if ($line === b'') {
- fwrite($output, b"\r\n");
+ if ($line === '') {
+ fwrite($output, "\r\n");
break;
} else if ($line !== false) {
- fwrite($output, b"$line\r\n");
+ fwrite($output, "$line\r\n");
- if (preg_match(b'#^Content-Length\s*:\s*([[:digit:]]+)\s*$#i', $line, $matches)) {
+ if (preg_match('#^Content-Length\s*:\s*([[:digit:]]+)\s*$#i', $line, $matches)) {
$content_length = (int) $matches[1];
}
}