소스 검색

[php] Add extern for `mime_content_type()` (#9835)

Cédric Belin 5 년 전
부모
커밋
37b7e98d44
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      std/php/Global.hx

+ 5 - 0
std/php/Global.hx

@@ -1546,6 +1546,11 @@ extern class Global {
 	**/
 	static function gzuncompress(data:String, ?length:Int):EitherType<String, Bool>;
 
+	/**
+		@see http://php.net/manual/en/function.mime-content-type.php
+	**/
+	static function mime_content_type(filename:String):EitherType<String, Bool>;
+
 	/**
 		@see http://php.net/manual/en/function.move-uploaded-file.php
 	**/