Răsfoiți Sursa

[php] added `session_status` extern

Aleksandr Kuzmenko 5 ani în urmă
părinte
comite
ba54734cc0
2 a modificat fișierele cu 12 adăugiri și 0 ștergeri
  1. 7 0
      std/php/Const.hx
  2. 5 0
      std/php/Global.hx

+ 7 - 0
std/php/Const.hx

@@ -252,6 +252,13 @@ extern class Const {
 	static final TCP_NODELAY:Int;
 	static final PHP_BINARY_READ:Int;
 
+	/**
+		@see http://php.net/manual/en/function.session-status.php
+	**/
+	static final PHP_SESSION_DISABLED:Int;
+	static final PHP_SESSION_NONE:Int;
+	static final PHP_SESSION_ACTIVE:Int;
+
 	/**
 		@see http://php.net/manual/en/json.constants.php
 	**/

+ 5 - 0
std/php/Global.hx

@@ -1413,6 +1413,11 @@ extern class Global {
 	**/
 	static function session_start(?options:NativeArray):Bool;
 
+	/**
+		@see http://php.net/manual/en/function.session-status.php
+	**/
+	static function session_status():Int;
+
 	/**
 		@see http://php.net/manual/en/function.session-unset.php
 	**/