Explorar o código

avoid more deprecation

Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
9fffc9b575
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      std/php/_std/sys/io/FileOutput.hx
  2. 1 1
      std/php/_std/sys/io/Process.hx

+ 1 - 1
std/php/_std/sys/io/FileOutput.hx

@@ -35,7 +35,7 @@ class FileOutput extends haxe.io.Output {
 	}
 
 	public override function writeBytes( b : haxe.io.Bytes, p : Int, l : Int ) : Int {
-		var s = b.readString(p, l);
+		var s = b.getString(p, l);
 		if(untyped __call__('feof', __f)) return throw new haxe.io.Eof();
 		var r = untyped __call__('fwrite', __f, s, l);
 		if(untyped __physeq__(r, false)) return throw haxe.io.Error.Custom('An error occurred');

+ 1 - 1
std/php/_std/sys/io/Process.hx

@@ -42,7 +42,7 @@ private class Stdin extends haxe.io.Output {
 	}
 
 	public override function writeBytes( b : haxe.io.Bytes, pos : Int, l : Int ) : Int {
-		var s = b.readString(pos, l);
+		var s = b.getString(pos, l);
 		if(untyped __call__('feof', p)) return throw new haxe.io.Eof();
 		var r = untyped __call__('fwrite', p, s, l);
 		if(untyped __physeq__(r, false)) return throw haxe.io.Error.Custom('An error occurred');