Browse Source

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

Cédric Belin 3 năm trước cách đây
mục cha
commit
3ca9389958
1 tập tin đã thay đổi với 15 bổ sung0 xóa
  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;
 }