浏览代码

[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>;
 }