php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40729 Contradiction in manaual page for pow() function
Submitted: 2007-03-05 14:39 UTC Modified: 2007-03-23 15:13 UTC
From: dkrysiak at o2 dot pl Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2007-03-05 14:39 UTC] dkrysiak at o2 dot pl
Description:
------------
http://pl.php.net/manual/en/function.pow.php

There is a contradiction in this documentation page.

The man page states:
"Note:  PHP cannot handle negative bases."
but few lines later such an example occurrs:
<?php
echo pow(-1, 20); // 1
?>
Decide please :-)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-05 14:46 UTC] dkrysiak at o2 dot pl
As my first comment...
Maybe person which has created the documentation, wanted to write about exponent ($exp) parameter - not about a base parameter :-)
 [2007-03-23 15:13 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"PHP cannot handle negative exps."
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 18:00:02 2025 UTC