浏览代码

[php] Add externs for `session_decode()` and `session_encode()` (#9831)

Cédric Belin 5 年之前
父节点
当前提交
10c6e6e528
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      std/php/Global.hx

+ 10 - 0
std/php/Global.hx

@@ -1413,11 +1413,21 @@ extern class Global {
 	**/
 	static function session_cache_expire(?new_cache_expire:Int):Int;
 
+	/**
+		@see http://php.net/manual/en/function.session-decode.php
+	**/
+	static function session_decode(data:String):Bool;
+
 	/**
 		@see http://php.net/manual/en/function.session-destroy.php
 	**/
 	static function session_destroy():Bool;
 
+	/**
+		@see http://php.net/manual/en/function.session-encode.php
+	**/
+	static function session_encode():String;
+
 	/**
 		@see http://php.net/manual/en/function.session-name.php
 	**/