PHP 4.0 Bug #8975 Updated: modulo (%) sets the ritht operator to the result

From: Date: Tue, 30 Jan 2001 00:08:57 +0000
Subject: PHP 4.0 Bug #8975 Updated: modulo (%) sets the ritht operator to the result
Groups: php.dev 
Request: Send a blank email to php-dev+get-45281@lists.php.net to get a copy of this message
ID: 8975 Updated by: sniper Reported By: ben@stonehenge-net.com Old-Status: Open Status: Feedback Bug Type: Unknown/Other Function Assigned To: Comments: This works for me (tm) just fine. ie. prints 2. Could you please try again (with the script below)? <?php $a = 0; $b = 2; $c = $a % $b; print($b); ?> --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-29 02:29:20] ben@stonehenge-net.com $a = 0; $b = 2; $c = $a % $b print($b) // $b will be set to 0. does nasty thing to for loops :) not really sure what was configured at compiletime, was from the FreeBSD ports collection, can dig it up if it's relevant. same with php.ini. no gdb, as there's no crash. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8975

« previous php.dev (#45281) next »