소스 검색

[php] changed Sys.stdin() stderr() stdout() to use predefined constants (fixes #5733)

Alexander Kuzmenko 8 년 전
부모
커밋
8e017241c2
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      std/php/_std/Sys.hx

+ 3 - 3
std/php/_std/Sys.hx

@@ -114,15 +114,15 @@
 	}
 
 	public static function stdin() : haxe.io.Input {
-		return untyped new sys.io.FileInput(__call__('fopen', 'php://stdin', "r"));
+		return untyped new sys.io.FileInput(__php__("STDIN"));
 	}
 
 	public static function stdout() : haxe.io.Output {
-		return untyped new sys.io.FileOutput(__call__('fopen', 'php://stdout', "w"));
+		return untyped new sys.io.FileOutput(__php__("STDOUT"));
 	}
 
 	public static function stderr() : haxe.io.Output {
-		return untyped new sys.io.FileOutput(__call__('fopen', 'php://stderr', "w"));
+		return untyped new sys.io.FileOutput(__php__("STDERR"));
 	}
 
 	public static function getChar( echo : Bool ) : Int {