Bug #73332 [Opn->Fbk]: Round function causes PHP crash

From: Date: Mon, 17 Oct 2016 14:33:49 +0000
Subject: Bug #73332 [Opn->Fbk]: Round function causes PHP crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204869@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: requinix@php.net Reported by: info at sistemasgsl dot com Summary: Round function causes PHP crash -Status: Open +Status: Feedback Type: Bug -Package: *General Issues +Package: COM related Operating System: Windows Server 2008 R2 64 bits PHP Version: 7.0.12 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#204869) next »