php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3743 Arithmetic Operator "/" seems to fail
Submitted: 2000-03-06 11:40 UTC Modified: 2000-03-07 10:52 UTC
From: mike at hoodlum dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 4 Patch Level 1 OS: linux 2.3.x / Apache/1.3.12 (Uni
Private report: No CVE-ID: None
 [2000-03-06 11:40 UTC] mike at hoodlum dot net
I am trying to use some arthimetic operators:

$totalkeyrate= (((1000*$maxblocks)/322)/($working_secs/86400));

as result I receive: Fatal error:  Unsupported operand types in file xyz on line xyz.

for debugging I replaced "/" with "+" and it worked fine....

What am I doing wrong?

under php3 it works fine....

Mike

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-07 10:52 UTC] mike at hoodlum dot net
I recompiled the same stuff again and now it works....but don't ask me why? I never had any errors/warnings while compiling...

Mike
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 12:01:31 2024 UTC