From: onzi at ustrem dot org
Operating system: AIX 6.1
PHP version: 5.2.11
PHP Bug Type: hash related
Bug description: compilation error with on aix with cc_r
Description:
------------
When I use -O2, -O3 or -O5 flags there are two errors.
Problem file is ext/hash/php_hash_tiger.h.
Reproduce code:
---------------
typedef struct {
php_hash_uint64 state[3];
php_hash_uint64 passed;
unsigned char passes:1;
unsigned char length:7;
unsigned char buffer[64];
} PHP_TIGER_CTX;
Expected result:
----------------
I've changed to this and now there are no errors
typedef struct {
php_hash_uint64 state[3];
php_hash_uint64 passed;
unsigned int passes:1;
unsigned int length:7;
unsigned char buffer[64];
} PHP_TIGER_CTX;
Actual result:
--------------
Is that correct or I will have problem other modules?
--
Edit bug report at http://bugs.php.net/?id=49952&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49952&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49952&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49952&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49952&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=49952&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49952&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=49952&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=49952&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=49952&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=49952&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=49952&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=49952&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=49952&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49952&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49952&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49952&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=49952&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=49952&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=49952&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=49952&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=49952&r=mysqlcfg