[php-src] master: Remove several useless `include <sys/param.h>` (#22611)

Weilin Du via GitHub <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Weilin Du (LamentXU123)
Committer: GitHub (web-flow)
Pusher: LamentXU123
Date: 2026-07-07T01:20:33+08:00

Commit: https://github.com/php/php-src/commit/de6828f50a4823226934d881dba12d144400d12e
Raw diff: https://github.com/php/php-src/commit/de6828f50a4823226934d881dba12d144400d12e.diff

Remove several useless `include <sys/param.h>` (#22611)

None of these files have use the sys/param.h file.

Changed paths:
  M  ext/random/random.c
  M  ext/standard/crypt_sha256.c
  M  ext/standard/crypt_sha512.c


Diff:

diff --git a/ext/random/random.c b/ext/random/random.c
index bd6f9f8a9018..e7fe2c21801e 100644
--- a/ext/random/random.c
+++ b/ext/random/random.c
@@ -45,10 +45,6 @@
 # include <sys/time.h>
 #endif
 
-#ifdef HAVE_SYS_PARAM_H
-# include <sys/param.h>
-#endif
-
 #include "random_arginfo.h"
 
 PHPAPI ZEND_DECLARE_MODULE_GLOBALS(random)
diff --git a/ext/standard/crypt_sha256.c b/ext/standard/crypt_sha256.c
index 2673dcf2b08e..3f3d9cdeb03c 100644
--- a/ext/standard/crypt_sha256.c
+++ b/ext/standard/crypt_sha256.c
@@ -23,7 +23,6 @@
 #ifdef PHP_WIN32
 # include <string.h>
 #else
-# include <sys/param.h>
 # include <sys/types.h>
 # include <string.h>
 #endif
diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c
index e8cedaa55c20..4a308e2f9af2 100644
--- a/ext/standard/crypt_sha512.c
+++ b/ext/standard/crypt_sha512.c
@@ -22,7 +22,6 @@
 #ifdef PHP_WIN32
 # include <string.h>
 #else
-# include <sys/param.h>
 # include <sys/types.h>
 # include <string.h>
 #endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.