Skip to content

Commit

Permalink
[php] Add externs for some POSIX functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Sep 12, 2024
1 parent 7f3dd53 commit 789f158
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions std/php/Global.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 789f158

Please sign in to comment.