Suppress zend signals check in two readline tests

Installing a callback handler may cause libedit to register new
signals during the request.
This commit is contained in:
Nikita Popov 2020-06-17 17:13:01 +02:00
parent 3d6199db8a
commit 9b3e57921f
4 changed files with 5 additions and 2 deletions

View File

@ -173,7 +173,7 @@ ZEND_INI_BEGIN()
ZEND_INI_ENTRY("zend.script_encoding", NULL, ZEND_INI_ALL, OnUpdateScriptEncoding)
STD_ZEND_INI_BOOLEAN("zend.detect_unicode", "1", ZEND_INI_ALL, OnUpdateBool, detect_unicode, zend_compiler_globals, compiler_globals)
#ifdef ZEND_SIGNALS
STD_ZEND_INI_BOOLEAN("zend.signal_check", "0", ZEND_INI_SYSTEM, OnUpdateBool, check, zend_signal_globals_t, zend_signal_globals)
STD_ZEND_INI_BOOLEAN("zend.signal_check", ZEND_DEBUG ? "1" : "0", ZEND_INI_SYSTEM, OnUpdateBool, check, zend_signal_globals_t, zend_signal_globals)
#endif
STD_ZEND_INI_BOOLEAN("zend.exception_ignore_args", "0", ZEND_INI_ALL, OnUpdateBool, exception_ignore_args, zend_executor_globals, executor_globals)
ZEND_INI_END()

View File

@ -328,7 +328,6 @@ void zend_signal_activate(void)
SIGG(active) = 1;
SIGG(depth) = 0;
SIGG(check) = ZEND_DEBUG;
} /* }}} */
/* {{{ zend_signal_deactivate

View File

@ -4,6 +4,8 @@ readline_callback_handler_install(): Basic test
<?php if (!extension_loaded("readline") || !function_exists('readline_callback_handler_install')) die("skip");
if (READLINE_LIB != "libedit") die("skip libedit only");
?>
--INI--
zend.signal_check=0
--FILE--
<?php

View File

@ -4,6 +4,8 @@ readline_callback_handler_remove(): Basic test
<?php if (!extension_loaded("readline") || !function_exists('readline_callback_handler_remove')) die("skip");
if (READLINE_LIB != "libedit") die("skip libedit only");
?>
--INI--
zend.signal_check=0
--FILE--
<?php