瀏覽代碼

[php] Add externs for `highlight_XXX()` and `php_strip_whitespace()` functions (#10533)

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

+ 15 - 0
std/php/Global.hx

@@ -2098,4 +2098,19 @@ extern class Global {
 		@see http://php.net/manual/en/function.ignore-user-abort.php
 	**/
 	static function ignore_user_abort(enable: Null<Bool> = null): Int;
+
+	/**
+		@see http://php.net/manual/en/function.highlight-file.php
+	**/
+	static function highlight_file(filename: String, returns: Bool = false): EitherType<String, Bool>;
+
+	/**
+		@see http://php.net/manual/en/function.highlight-string.php
+	**/
+	static function highlight_string(string: String, returns: Bool = false): EitherType<String, Bool>;
+
+	/**
+		@see http://php.net/manual/en/function.php-strip-whitespace.php
+	**/
+	static function php_strip_whitespace(filename: String): String;
 }