php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16944 pow
Submitted: 2002-05-01 10:07 UTC Modified: 2002-05-01 12:04 UTC
From: johnl at stihealthcare dot com Assigned:
Status: Closed Package: *Math Functions
PHP Version: 4.2.0 OS: linux
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:
48 - 31 = ?
Subscribe to this entry?

 
 [2002-05-01 10:07 UTC] johnl at stihealthcare dot com
pow works fine before 4.20, but in 4.20 it broke -
Warning: Invalid argument(s) passed to pow() 

It works pow(111111,2) but breaks if
I passed pow($N, 2), where $N=111111.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-01 12:04 UTC] jimw@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/

in 4.2.0, pow() doesn't handle strings as arguments, so you may need to cast the arguments you're passing in.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 14:01:31 2024 UTC