| Newsgroups |
php.bugs |
| Message-ID |
<[email protected]> |
From: [email protected]
Operating system: *
PHP version: 5.3CVS-2009-03-25 (CVS)
PHP Bug Type: PCNTL related
Bug description: Wrong value for SIG_UNBLOCK and SIG_SETMASK constants
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 bug report at http://bugs.php.net/?id=47779&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47779&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47779&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47779&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47779&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47779&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47779&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47779&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47779&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47779&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47779&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47779&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47779&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47779&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47779&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47779&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47779&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47779&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47779&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47779&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47779&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47779&r=mysqlcfg