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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mike at hoodlum dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Sep 28 16:01:27 2024 UTC