[PHP-DEV] Bug #11685 Updated: Bad Auto-Cast
ID: 11685 User Update by: Hot Soon[EMAIL PROTECTED] Status: Closed Bug Type: Scripting Engine problem Operating system: Windows 98 SE PHP Version: 4.0.6 Description: Bad Auto-Cast Previous Comments: --- [2001-06-26 07:55:20] [EMAIL PROTECTED] Indeed, +, -, and * 'autocasting' doesn't work in negative direction, only positive. --- [2001-06-26 01:30:13] Hot Soon[EMAIL PROTECTED] Just run this program: ?php $var=-1073741824; #^ Here! $var*=2;$var*=2; var_dump($var); ? It will print out int(0). but I believe it should print outint(-2147483648) or float(-2147483648) like this program: ?php $var=1073741824; #^ Here! $var*=2;$var*=2; var_dump($var); ? --- Full Bug description available at: http://bugs.php.net/?id=11685 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11685 Updated: Bad Auto-Cast
ID: 11685 Updated by: zeev Reported By: Hot Soon[EMAIL PROTECTED] Old-Status: Analyzed Status: Closed Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.6 Assigned To: jeroen Comments: Fixed in the latest CVS (will be fixed in 4.0.7) Previous Comments: --- [2001-06-26 07:55:20] [EMAIL PROTECTED] Indeed, +, -, and * 'autocasting' doesn't work in negative direction, only positive. --- [2001-06-26 01:30:13] Hot Soon[EMAIL PROTECTED] Just run this program: ?php $var=-1073741824; #^ Here! $var*=2;$var*=2; var_dump($var); ? It will print out int(0). but I believe it should print outint(-2147483648) or float(-2147483648) like this program: ?php $var=1073741824; #^ Here! $var*=2;$var*=2; var_dump($var); ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11685edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11685 Updated: Bad Auto-Cast
ID: 11685 Updated by: sniper Reported By: Hot Soon[EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.6 Assigned To: Comments: Previous Comments: --- [2001-06-26 01:30:13] Hot Soon[EMAIL PROTECTED] Just run this program: ?php $var=-1073741824; #^ Here! $var*=2;$var*=2; var_dump($var); ? It will print out int(0). but I believe it should print outint(-2147483648) or float(-2147483648) like this program: ?php $var=1073741824; #^ Here! $var*=2;$var*=2; var_dump($var); ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11685edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11685 Updated: Bad Auto-Cast
ID: 11685 Updated by: jeroen Reported By: Hot Soon[EMAIL PROTECTED] Old-Status: Bogus Status: Analyzed Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.6 Assigned To: jeroen Comments: Indeed, +, -, and * 'autocasting' doesn't work in negative direction, only positive. Previous Comments: --- [2001-06-26 01:30:13] Hot Soon[EMAIL PROTECTED] Just run this program: ?php $var=-1073741824; #^ Here! $var*=2;$var*=2; var_dump($var); ? It will print out int(0). but I believe it should print outint(-2147483648) or float(-2147483648) like this program: ?php $var=1073741824; #^ Here! $var*=2;$var*=2; var_dump($var); ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11685edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]