#47779 [Opn->Csd]: Wrong value for SIG_UNBLOCK and SIG_SETMASK constants
| From: | felipe@php.net | Date: | Wed, 25 Mar 2009 22:53:05 +0000 |
| Subject: | #47779 [Opn->Csd]: Wrong value for SIG_UNBLOCK and SIG_SETMASK constants | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135130@lists.php.net to get a copy of this message | ||
ID: 47779
Updated by: felipe@php.net
Reported By: mbeccati@php.net
-Status: Open
+Status: Closed
Bug Type: PCNTL related
Operating System: *
PHP Version: 5.3CVS-2009-03-25 (CVS)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Fixed in 5.3 and HEAD. Thanks.
Previous Comments:
------------------------------------------------------------------------
[2009-03-25 22:32:23] mbeccati@php.net
Description:
------------
While chking pcntl.c because of build errors on FreeBSD 6 and test
failures on NetBSD 4, I spotted that SIG_UNBLOCK and SIG_SETMASK both
have the same value as SIG_BLOCK.
Patch w/ test available here:
http://www.beccati.com/misc/php/pcntl_sig_constants_HEAD.diff
My karma prevents me from committing directly.
Reproduce code:
---------------
var_dump(SIG_BLOCK);
var_dump(SIG_UNBLOCK);
var_dump(SIG_SETMASK);
Expected result:
----------------
int(0)
int(1)
int(2)
Actual result:
--------------
int(0)
int(0)
int(0)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47779&edit=1