Bug #53530 [NEW]: php_crypt tests gcc version incorrectly due to typo

From: Date: Sun, 12 Dec 2010 21:39:42 +0000
Subject: Bug #53530 [NEW]: php_crypt tests gcc version incorrectly due to typo
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156937@lists.php.net to get a copy of this message
From:             
Operating system: Linux
PHP version:      5.3.4
Package:          Compile Failure
Bug Type:         Bug
Bug description:php_crypt tests gcc version incorrectly due to typo

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 bug report at http://bugs.php.net/bug.php?id=53530&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=53530&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=53530&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=53530&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=53530&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53530&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=53530&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=53530&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=53530&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=53530&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=53530&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=53530&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=53530&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=53530&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=53530&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53530&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53530&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=53530&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=53530&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=53530&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=53530&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=53530&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#156937) next »