소스 검색

[php] Add the `http_response_code()` function (#9683)

* [php] Add the `http_response_code()` function

* [php] Fixed the `http_response_code()` signature
Cédric Belin 5 년 전
부모
커밋
8820cfbea3
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      std/php/Global.hx

+ 5 - 0
std/php/Global.hx

@@ -1489,4 +1489,9 @@ extern class Global {
 		@see http://php.net/manual/en/function.cli-set-process-title.php
 	**/
 	static function cli_set_process_title(title:String):Bool;
+
+	/**
+		@see http://php.net/manual/en/function.http-response-code.php
+	**/
+	static function http_response_code(?response_code:Int):EitherType<Int, Bool>;
 }