|  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:
 [2009-12-29 11:23 UTC] marco dot sampellegrini at dtraining dot it

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


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

Expected result:

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


Add a Patch

Pull Requests

Add a Pull Request


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



Version 	Description
5.3.0 	The mode parameter was introduced. 
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 01:01:34 2015 UTC