intelephense

1.14.41.16.1
lib/stub/posix/posix.php
lib/stub/posix/posix.php
+46−26
Index: package/lib/stub/posix/posix.php
===================================================================
--- package/lib/stub/posix/posix.php
+++ package/lib/stub/posix/posix.php
@@ -83,8 +83,9 @@
  * @return bool Returns TRUE on success or FALSE on failure.
  * @since 7.0
  */
 function posix_setrlimit(int $resource, int $soft_limit, int $hard_limit): bool {}
+
 /**
  * Return the real group ID of the current process
  * @link https://php.net/manual/en/function.posix-getgid.php
  * @return int the real group id, as an integer.
@@ -210,14 +211,14 @@
  * </p>
  */
 #[Pure]
 #[ArrayShape([
-    'sysname' => 'string',
-    'nodename' => 'string',
-    'release' => 'string',
-    'version' => 'string',
-    'machine' => 'string',
-    'domainname' => 'string',
+        'sysname' => 'string',
+        'nodename' => 'string',
+        'release' => 'string',
+        'version' => 'string',
+        'machine' => 'string',
+        'domainname' => 'string',
 ])]
 function posix_uname(): array|false {}
 
 /**
@@ -233,12 +234,12 @@
  * cstime - system time used by current process and children.
  */
 #[Pure]
 #[ArrayShape([
-    'ticks' => 'int',
-    'utime' => 'int',
-    'stime' => 'int',
-    'cutime' => 'int',
+        'ticks' => 'int',
+        'utime' => 'int',
+        'stime' => 'int',
+        'cutime' => 'int',
     'cstime' => 'int'
 ])]
 function posix_times(): array|false {}
 
@@ -254,9 +255,9 @@
 
 /**
  * Determine terminal device name
  * @link https://php.net/manual/en/function.posix-ttyname.php
- * @param int $file_descriptor <p>
+ * @param resource|int $file_descriptor <p>
  * The file descriptor.
  * </p>
  * @return string|false On success, returns a string of the absolute path of the
  * <i>fd</i>. On failure, returns <b>FALSE</b>
@@ -266,9 +267,9 @@
 
 /**
  * Determine if a file descriptor is an interactive terminal
  * @link https://php.net/manual/en/function.posix-isatty.php
- * @param mixed $file_descriptor <p>
+ * @param resource|int $file_descriptor <p>
  * The file descriptor, which is expected to be either a file resource or an integer.
  * An integer will be assumed to be a file descriptor that can be passed
  * directly to the underlying system call.<br />
  * In almost all cases, you will want to provide a file resource.
@@ -520,15 +521,15 @@
  * </table>
  */
 #[Pure]
 #[ArrayShape([
-    "name" => "string",
-    "passwd" => "string",
-    "uid" => "int",
-    "gid" => "int",
-    "gecos" => "string",
-    "dir" => "string",
-    "shell" => "string",
+        "name" => "string",
+        "passwd" => "string",
+        "uid" => "int",
+        "gid" => "int",
+        "gecos" => "string",
+        "dir" => "string",
+        "shell" => "string",
 ])]
 function posix_getpwnam(string $username): array|false {}
 
 /**
@@ -612,15 +613,15 @@
  * </table>
  */
 #[Pure]
 #[ArrayShape([
-    'name' => 'string',
-    'passwd' => 'string',
-    'uid' => 'int',
-    'gid' => 'int',
-    'gecos' => 'string',
-    'dir' => 'string',
-    'shell' => 'string',
+        'name' => 'string',
+        'passwd' => 'string',
+        'uid' => 'int',
+        'gid' => 'int',
+        'gecos' => 'string',
+        'dir' => 'string',
+        'shell' => 'string',
 ])]
 function posix_getpwuid(int $user_id): array|false {}
 
 /**
@@ -750,18 +751,36 @@
 #[Pure]
 function posix_initgroups(string $username, int $group_id): bool {}
 
 /**
+ * Returns system runtime information.
  * @since 8.3
+ * @link  https://www.php.net/manual/en/function.posix-sysconf.php
  */
 function posix_sysconf(int $conf_id): int {}
 
 /**
  * @since 8.3
+ * @link  https://www.php.net/manual/en/function.posix-eaccess.php
  */
 function posix_eaccess(string $filename, int $flags = 0): bool {}
 
 /**
+ * Returns the value of a configurable limit
+ * @link  https://www.php.net/manual/en/function.posix-fpathconf.php
+ * @since 8.3
+ * @param resource|int $file_descriptor
+ */
+function posix_fpathconf($file_descriptor, int $name): int|false {}
+
+/**
+ * Returns the value of a configurable limit from name for a path
+ * @since 8.3
+ * @link  https://www.php.net/manual/en/function.posix-pathconf.php
+ */
+function posix_pathconf(string $path, int $name): int|false {}
+
+/**
  * Check whether the file exists.
  * @link https://php.net/manual/en/posix.constants.php
  */
 define('POSIX_F_OK', 0);
@@ -938,8 +957,9 @@
 define('POSIX_PC_CHOWN_RESTRICTED', 6);
 define('POSIX_PC_NO_TRUNC', 7);
 define('POSIX_PC_ALLOC_SIZE_MIN', 18);
 define('POSIX_PC_SYMLINK_MAX', 19);
+define('POSIX_SC_OPEN_MAX', 4);
 /**
  * @since 8.4
  */
 define('POSIX_SC_CHILD_MAX', 1);