|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[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
[2016-10-30 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 19:00:02 2025 UTC |
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 ?>