Browse Source

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

Cédric Belin 5 years ago
parent
commit
10c6e6e528
1 changed files with 10 additions and 0 deletions
  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
 	**/