瀏覽代碼

[php] Add externs for `sys_get_temp_dir`, `tempnam` and `tmpfile` functions (#10369)

Cédric Belin 4 年之前
父節點
當前提交
c8cc0d2fce
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      std/php/Global.hx

+ 15 - 0
std/php/Global.hx

@@ -1893,4 +1893,19 @@ extern class Global {
 		@see http://php.net/manual/en/function.easter-days.php
 	**/
 	static function easter_days(?year:Int, ?mode:Int): Int;
+
+	/**
+		@see http://php.net/manual/en/function.sys-get-temp-dir.php
+	**/
+	static function sys_get_temp_dir():String;
+
+	/**
+		@see http://php.net/manual/en/function.tempnam.php
+	**/
+	static function tempnam(directory:String, prefix:String):EitherType<String, Bool>;
+
+	/**
+		@see http://php.net/manual/en/function.tmpfile.php
+	**/
+	static function tmpfile():EitherType<Resource, Bool>;
 }