#35222 [NEW]: Possible integer rollover bug.
| From: | richard at is-pl dot com | Date: | Tue, 15 Nov 2005 06:46:44 +0000 |
| Subject: | #35222 [NEW]: Possible integer rollover bug. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-88181@lists.php.net to get a copy of this message | ||
From: richard at is-pl dot com
Operating system: Redhat Enterprise Linux 3
PHP version: 5.0.5
PHP Bug Type: Variables related
Bug description: Possible integer rollover bug.
Description:
------------
When passing a specific value as an integer to a function a call to
func_get_args reveals that the passed value has been corrupted somehow.
here is my configure command.
'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2'
'--with-db4=/usr' '--with-curl' '--with-dom=/usr'
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-ttf' '--with-gd' '--with-gdbm'
'--with-gettext' '--with-ncurses' '--with-gmp'
'--with-iconv'
'--with-jpeg-dir=/usr/lib' '--with-openssl' '--with-png'
'--with-pspell'
'--with-regex=system' '--with-xml' '--with-expat-dir=/usr'
'--with-pcre=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath'
'--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-discard-path' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex'
'--with-pear=/usr/share/pear' '--with-imap-ssl=/usr/local/imap-2002e'
'--with-kerberos=/usr/kerberos' '--with-mysql=/usr'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-versioning' '--enable-calendar' '--enable-dbx'
'--enable-dio'
'--enable-mcal' '--with-apxs2filter=/usr/sbin/apxs'
Reproduce code:
---------------
crctrntest(0502380732);
function crctrntest( $trn_key)
{
print_r(func_get_args());
}
Expected result:
----------------
Array
(
[0] => 502380732
)
Actual result:
--------------
Array
(
[0] => 2579
)
--
Edit bug report at http://bugs.php.net/?id=35222&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35222&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35222&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35222&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35222&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35222&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35222&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35222&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35222&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35222&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35222&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35222&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35222&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35222&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35222&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35222&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35222&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35222&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35222&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35222&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35222&r=mysqlcfg