Browse Source

[php7] fix Socket.read() to avoid var fusion

Alexander Kuzmenko 8 years ago
parent
commit
c9f9fe9c4f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/php7/_std/sys/net/Socket.hx

+ 1 - 1
std/php7/_std/sys/net/Socket.hx

@@ -57,7 +57,7 @@ class Socket {
 
 	public function read() : String {
 		var b = '';
-		while(!feof(__s)) Syntax.binop(b, '.=', fgets(__s));
+		while(!feof(__s)) b += fgets(__s);
 		return b;
 	}