From fe9ce624f670a25c7f568cd0c12f7b63445be301 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 25 Mar 2009 22:52:30 +0000 Subject: [PATCH] MFH: - Fixed bug #47779 (Wrong value for SIG_UNBLOCK and SIG_SETMASK constants). Patch by: mbeccati at php.net --- NEWS | 7 ++++--- ext/pcntl/pcntl.c | 4 ++-- ext/pcntl/tests/003.phpt | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 ext/pcntl/tests/003.phpt diff --git a/NEWS b/NEWS index 63b2353e99..d8bde6405f 100644 --- a/NEWS +++ b/NEWS @@ -1,11 +1,12 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 200?, PHP 5.3.0 RC 2 +- Fixed bug #47779 (Wrong value for SIG_UNBLOCK and SIG_SETMASK constants). + (Matteo) - Fixed bug #47699 (autoload and late static binding). (Dmitry) - Fixed bug #47038 (Memory leak in include). (Dmitry) -- Fixed bug #44409 (PDO::FETCH_SERIALIZE calls __construct()). - (matteo at beccati dot com) -- Fixed bug #42362 - (HTTP status codes 204 and 304 should not be gzipped). +- Fixed bug #44409 (PDO::FETCH_SERIALIZE calls __construct()). (Matteo) +- Fixed bug #42362 (HTTP status codes 204 and 304 should not be gzipped). (Scott, Edward Z. Yang) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 90070566b8..9a702074c0 100755 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -264,8 +264,8 @@ void php_register_signal_constants(INIT_FUNC_ARGS) /* {{{ "how" argument for sigprocmask */ #ifdef HAVE_SIGPROCMASK REGISTER_LONG_CONSTANT("SIG_BLOCK", SIG_BLOCK, CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("SIG_UNBLOCK", SIG_BLOCK, CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("SIG_SETMASK", SIG_BLOCK, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("SIG_UNBLOCK", SIG_UNBLOCK, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("SIG_SETMASK", SIG_SETMASK, CONST_CS | CONST_PERSISTENT); #endif /* }}} */ diff --git a/ext/pcntl/tests/003.phpt b/ext/pcntl/tests/003.phpt new file mode 100644 index 0000000000..012277d255 --- /dev/null +++ b/ext/pcntl/tests/003.phpt @@ -0,0 +1,32 @@ +--TEST-- +pcntl: SIG_BLOCK, SIG_UNBLOCK, SIG_SETMASK +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(0) +int(2) +int(3) +int(2) +int(1) +int(0) -- 2.50.1