|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73332 Round function causes PHP crash
Submitted: 2016-10-17 14:06 UTC Modified: 2016-10-30 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: info at sistemasgsl dot com Assigned:
Status: No Feedback Package: COM related
PHP Version: 7.0.12 OS: Windows Server 2008 R2 64 bits
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: info at sistemasgsl dot com
New email:
PHP Version: OS:


 [2016-10-17 14:06 UTC] info at sistemasgsl dot com
When I load this COM library, the PHP function round() crashes if the argument is a zero float value. On previous versions of PHP (5.4) works fine.

This is a PHP BUG? Why the COM library affects the round function?

Sorry for my bad english.

Test script:
round(0.00, 2); // Works
$com = new COM("EpsonFPHostControlX.EpsonFPHostControl");
round(0, 2); // Works
round('0', 2); // Works
round(0.01, 2); // Works
round(0.00, 2); // PHP crash
round((float) 0, 2); // PHP crash


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-17 14:33 UTC]
-Status: Open +Status: Feedback -Package: *General Issues +Package: COM related
 [2016-10-17 14:33 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read for *NIX and for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I've tried with a variety of different COM objects and haven't been able to reproduce on Windows 10.
 [2016-10-30 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 09:01:28 2024 UTC