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
 [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

Pull Requests

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: Sat Dec 21 17:01:58 2024 UTC