Skip to content

Commit fb809af

Browse files
committed
Fix #217 - do not use socket_last_error() on file pointer
Signed-off-by: Andras Timar <[email protected]>
1 parent e47eccc commit fb809af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ function getallheaders()
392392
do {
393393
$chunk = fread($local, 65536);
394394
if($chunk === false) {
395-
$error = socket_last_error($local);
395+
$error = implode(' ', error_get_last());
396396
echo "ERROR ! $error\n";
397397
debug_log("error on chunk: $error");
398398
break;

0 commit comments

Comments
 (0)