Bug #53530 [Opn->Csd]: php_crypt tests gcc version incorrectly due to typo
| From: | cataphract@php.net | Date: | Sun, 12 Dec 2010 22:28:06 +0000 |
| Subject: | Bug #53530 [Opn->Csd]: php_crypt tests gcc version incorrectly due to typo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156938@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53530&edit=1
ID: 53530
Updated by: cataphract@php.net
Reported by: vapier at gmail dot com
Summary: php_crypt tests gcc version incorrectly due to typo
-Status: Open
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Linux
PHP Version: 5.3.4
-Assigned To:
+Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
Fixed. I wonder why the atomic operation is used though, because the
section is protected with a lock.
Previous Comments:
------------------------------------------------------------------------
[2010-12-12 23:27:04] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=306305
Log: - Fixed bug #53530 (php_crypt tests gcc version incorrectly due to
typo) (vapier at gmail dot com)
------------------------------------------------------------------------
[2010-12-12 22:39:41] vapier at gmail dot com
Description:
------------
the ext/standard/php_crypt_r.c code supports atomic ops, but it tests
for the gcc version incorrectly due to a typo in the define name:
...
#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR >= 2))
__sync_fetch_and_add(&initialized, 1);
...
gcc defines "__GNUC_MINOR__", not "__GNUC_MINOR".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53530&edit=1