php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14544 Bogus warning: Trying to raise a nonpositive value to a broken power
Submitted: 2001-12-16 05:21 UTC Modified: 2001-12-16 18:41 UTC
From: drowland at bigpond dot net dot au Assigned:
Status: Closed Package: Math related
PHP Version: 4.1.0 OS: Red Hat Linux 7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 9 = ?
Subscribe to this entry?

 
 [2001-12-16 05:21 UTC] drowland at bigpond dot net dot au
When running the following on php 4.1.0:

<? echo pow(abs(-00.00),.5); ?>

I receive the following error:

Warning: Trying to raise a nonpositive value to a broken power in /var/www/bnt3/test2.php on line 1

Given the abs function, there should be no way that it is a nonpositive value.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-16 05:38 UTC] derick@php.net
Fixed in CVS, thanks for the report!

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC