From: philipp at redfish-solutions dot com Operating system: linux 2.6.27.42 PHP version: 5.2.12 PHP Bug Type: Compile Warning Bug description: Hashes use improper sign with L64 macro
Description: ------------ The table: static const php_hash_uint64 rc[R + 1] = { ... L64(0xbd5d10f4cb3e0567), ... uses unsigned data of 64-bit size, but it isn't declared as such. When the high bit is set, as above, this causes warnings (or errors, if -Wall is present). Reproduce code: --------------- The fix is trivial. In the sequence: #elif SIZEOF_LONG_LONG == 8 #define L64(x) x##LL typedef unsigned long long php_hash_uint64; for example, in ext/hash/php_hash_types.h, the macro should be written as: #define L64(x) x##ULL instead. -- Edit bug report at http://bugs.php.net/?id=50800&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50800&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50800&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50800&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50800&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50800&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50800&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50800&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50800&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50800&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50800&r=support Expected behavior: http://bugs.php.net/fix.php?id=50800&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50800&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50800&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50800&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50800&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50800&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50800&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50800&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50800&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50800&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50800&r=mysqlcfg