Skip to content

Commit a408781

Browse files
committedJan 23, 2023
Remove now-unused check for /dev/urandom from Zend/Zend.m4
1 parent 2b395f7 commit a408781

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
 

‎UPGRADING.INTERNALS

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ PHP 8.3 INTERNALS UPGRADE NOTES
3535
2. Build system changes
3636
========================
3737

38+
* Removed the HAVE_DEV_URANDOM compile time check. HAVE_DEV_URANDOM will
39+
now never be defined. Any checks relying on HAVE_DEV_URANDOM should be
40+
removed. Even with HAVE_DEV_URANDOM it was not guaranteed that
41+
/dev/urandom is actually available at run time and thus a runtime
42+
check needs to happen in all cases.
43+
3844
========================
3945
3. Module changes
4046
========================

‎Zend/Zend.m4

-8
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,6 @@ AC_MSG_RESULT($ZEND_SIGNALS)
304304
305305
])
306306

307-
AC_MSG_CHECKING(whether /dev/urandom exists)
308-
if test -r "/dev/urandom" && test -c "/dev/urandom"; then
309-
AC_DEFINE([HAVE_DEV_URANDOM], 1, [Define if the target system has /dev/urandom device])
310-
AC_MSG_RESULT(yes)
311-
else
312-
AC_MSG_RESULT(no)
313-
fi
314-
315307
AC_ARG_ENABLE([gcc-global-regs],
316308
[AS_HELP_STRING([--disable-gcc-global-regs],
317309
[whether to enable GCC global register variables])],

0 commit comments

Comments
 (0)