php.net |  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
Votes:1
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at sistemasgsl dot com
New email:
PHP Version: OS:

 

 [2016-10-17 14:06 UTC] info at sistemasgsl dot com
Description:
------------
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
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-17 14:33 UTC] requinix@php.net
-Status: Open +Status: Feedback -Package: *General Issues +Package: COM related
 [2016-10-17 14:33 UTC] requinix@php.net
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
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php 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: Thu Dec 26 12:01:30 2024 UTC