Commit de6828f50a4 for php.net
commit de6828f50a4823226934d881dba12d144400d12e
Author: Weilin Du <weilindu@php.net>
Date: Tue Jul 7 01:20:33 2026 +0800
Remove several useless `include <sys/param.h>` (#22611)
None of these files have use the sys/param.h file.
diff --git a/ext/random/random.c b/ext/random/random.c
index bd6f9f8a901..e7fe2c21801 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 2673dcf2b08..3f3d9cdeb03 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 e8cedaa55c2..4a308e2f9af 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