You are here: division by zero after PHP-Upgrade « PHP Programming Language « IT news, forums, messages
division by zero after PHP-Upgrade

Posted by Cord-Heinrich Pahlmann on 03/08/07 09:59

Hi.

I have following problem after my hoster updated to PHP 5.2.1. I'm not
really sure from what Version the update was done, but it was
definetly something like 5.x.x.
Locally I run XAMPP w/ PHP 4.4.4 and my script runs just fine.

These are the two lines which generate the error.
$return = $sbox0[$b0] + $sbox1[$b1] % pow(2,32) ;
$return = ($return ^ $sbox2[$b2]) + $sbox3[$b3] % pow(2,32);
It doesn't matter what is stored in the sboxes since the error has to
be from the modulo.

I tested if pow(2,32) would generate a zero, but it doesn't. So that
can't be the problem.

I use @() and the script seems to work.

Any suggestions?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация