1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Emit error when building fuzzer with ZTS (#14273)

Thread safety (--enable-zts) is not supported when building fuzzer
(--enable-fuzzer).

Fixes GH-14243
This commit is contained in:
Peter Kokot
2024-05-20 15:31:33 +02:00
committed by GitHub
parent b7bf846f72
commit ca3444b1d8

View File

@@ -21,6 +21,12 @@ AC_DEFUN([PHP_FUZZER_TARGET], [
if test "$PHP_FUZZER" != "no"; then
AC_MSG_RESULT([yes])
AS_VAR_IF([enable_zts], [yes], [AC_MSG_ERROR(m4_normalize([
Thread safety (--enable-zts) is not supported when building fuzzing module
(--enable-fuzzer). Please build fuzzer without ZTS.
]))])
dnl Don't use PHP_REQUIRE_CXX() to avoid unnecessarily pulling in -lstdc++
AC_PROG_CXX
AC_PROG_CXXCPP