php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50604 function round() doesn't accept 3rd param
Submitted: 2009-12-29 11:23 UTC Modified: 2009-12-29 11:35 UTC
From: marco dot sampellegrini at dtraining dot it Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.12 OS: Windows xp pro sp3
Private report: No CVE-ID: None
 [2009-12-29 11:23 UTC] marco dot sampellegrini at dtraining dot it
Description:
------------
Hi,

I get the same on 5.2.9
I'm using xampplite.

Thanks.

Reproduce code:
---------------
---
From manual page: function.round#Examples
---
echo round(9.5, 0, PHP_ROUND_HALF_UP);

Expected result:
----------------
10

Actual result:
--------------
Warning: Wrong parameter count for round() in .. on line ...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-29 11:35 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

From  http://uk2.php.net/round:

Changelog

Version 	Description
5.3.0 	The mode parameter was introduced. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC