#50604 [Opn->Bgs]: function round() doesn't accept 3rd param

From: Date: Tue, 29 Dec 2009 11:35:30 +0000
Subject: #50604 [Opn->Bgs]: function round() doesn't accept 3rd param
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146176@lists.php.net to get a copy of this message
 ID:               50604
 Updated by:       derick@php.net
 Reported By:      marco dot sampellegrini at dtraining dot it
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows xp pro sp3
 PHP Version:      5.2.12
 New Comment:

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. 


Previous Comments:
------------------------------------------------------------------------

[2009-12-29 11:23:44] 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 ...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50604&edit=1



Thread (2 messages)

« previous php.bugs (#146176) next »