Explorar o código

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

Cédric Belin %!s(int64=5) %!d(string=hai) anos
pai
achega
10c6e6e528
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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
 	**/