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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user