From 789f158f618ebc53475e7a2bc8e0a49128334a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Thu, 12 Sep 2024 13:34:51 +0200 Subject: [PATCH] [php] Add externs for some POSIX functions --- std/php/Global.hx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/std/php/Global.hx b/std/php/Global.hx index 005ecb77fa4..ab4b89c2573 100644 --- a/std/php/Global.hx +++ b/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; }