PHP 4.0 Bug #3167: bcmod() function not working

From: Date: Mon, 10 Jan 2000 23:48:28 +0000
Subject: PHP 4.0 Bug #3167: bcmod() function not working
Groups: php.dev 
Request: Send a blank email to php-dev+get-14479@lists.php.net to get a copy of this message
From: emichaud@sequoianet.com Operating system: linux - red hat PHP version: 4.0 Beta 3 PHP Bug Type: Scripting Engine problem Bug description: bcmod() function not working Fatal error: Call to undefined function: bcmod() in /usr/local/apache/htdocs/emu/v1/webu.php3 on line 67 This code works fine on php3. Fails on php4. function elapsedtime($sec){ $days = floor($sec / 86400); $hrs = floor(bcmod($sec,86400)/3600); $mins = round(bcmod(bcmod($sec,86400),3600)/60); if($days > 0) $tstring = $days . "d,"; if($hrs > 0) $tstring = $tstring . $hrs . "h,"; $tstring = "[" . $tstring . $mins . "m]"; return($tstring); } I compiled php4 with general configuration from README plus mysql support.

« previous php.dev (#14479) next »