소스 검색

[php] Add externs for some POSIX functions (#11769)

Cédric Belin 1 년 전
부모
커밋
32d9b9b8fa
1개의 변경된 파일25개의 추가작업 그리고 0개의 파일을 삭제
  1. 25 0
      std/php/Global.hx

+ 25 - 0
std/php/Global.hx

@@ -2158,4 +2158,29 @@ extern class Global {
 		@see http://php.net/manual/en/function.php-strip-whitespace.php
 	**/
 	static function php_strip_whitespace(filename: String): String;
+
+	/**
+		@see http://php.net/manual/en/function.posix-getgid.php
+	**/
+	static function posix_getgid(): Int;
+
+	/**
+		@see http://php.net/manual/en/function.posix-getpid.php
+	**/
+	static function posix_getpid(): Int;
+
+	/**
+		@see http://php.net/manual/en/function.posix-getuid.php
+	**/
+	static function posix_getuid(): Int;
+
+	/**
+		@see http://php.net/manual/en/function.posix-setgid.php
+	**/
+	static function posix_setgid(group_id: Int): Bool;
+
+	/**
+		@see http://php.net/manual/en/function.posix-setuid.php
+	**/
+	static function posix_setuid(user_id: Int): Bool;
 }