Bug #73332 [Fbk->NoF]: Round function causes PHP crash
| From: | php-bugs at lists dot php dot net | Date: | Sun, 30 Oct 2016 04:22:30 +0000 |
| Subject: | Bug #73332 [Fbk->NoF]: Round function causes PHP crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205066@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73332&edit=1
ID: 73332
Updated by: php-bugs@lists.php.net
Reported by: info at sistemasgsl dot com
Summary: Round function causes PHP crash
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: COM related
Operating System: Windows Server 2008 R2 64 bits
PHP Version: 7.0.12
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-10-17 14:33:46] 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-17 14:06:08] 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
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73332&edit=1