ID: 30315 Updated by: [EMAIL PROTECTED] Reported By: tokul at users dot sourceforge dot net -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Linux PHP Version: 5.0.2 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. . Previous Comments: ------------------------------------------------------------------------ [2004-10-03 21:35:01] tokul at users dot sourceforge dot net Description: ------------ If big number (2500072158) is converted to integer, php 5.0.2 does not overflow and uses max integer value (2147483647). OS details: Linux Debian Sarge PHP compilation details (vanilla php-5.0.2.tar.bz2): ./configure --disable-debug --with-apxs=/somepath/apache/bin/apxs --prefix=/somepath/php --with-config-file-path=/somepath/ --with-pcre-regex --enable-mbstring --enable-session --disable-all --with-gettext=shared,/usr php.ini details: error_reporting=E_ALL display_errors=on register_globals=off asp_tags=on short_tags=off Is this standard future php behaviour or just some error in my config? Reproduce code: --------------- echo (int)0xde120495; Expected result: ---------------- -569244523 Actual result: -------------- 2147483647 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30315&edit=1