mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
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:
parent
3d6199db8a
commit
9b3e57921f
@ -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()
|
||||
|
@ -328,7 +328,6 @@ void zend_signal_activate(void)
|
||||
|
||||
SIGG(active) = 1;
|
||||
SIGG(depth) = 0;
|
||||
SIGG(check) = ZEND_DEBUG;
|
||||
} /* }}} */
|
||||
|
||||
/* {{{ zend_signal_deactivate
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user