[PHP-DEV] PHP 4.0 Bug #8975: modulo (%) sets the ritht operator to the result From: ben <email protected>
Date: 01/29/01

From: ben <email protected>
Operating system: FreeBSD
PHP version: 4.0.4pl1
PHP Bug Type: Unknown/Other Function
Bug description: modulo (%) sets the ritht operator to the result

$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.

-- 
Edit Bug report at: http://bugs.php.net/?id=8975&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>