Bug #73332 [NEW]: Round function causes PHP crash

From: Date: Mon, 17 Oct 2016 14:06:10 +0000
Subject: Bug #73332 [NEW]: Round function causes PHP crash
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204867@lists.php.net to get a copy of this message
From: info at sistemasgsl dot com Operating system: Windows Server 2008 R2 64 bits PHP version: 7.0.12 Package: *General Issues Bug Type: Bug Bug description:Round function causes PHP crash 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 bug report at https://bugs.php.net/bug.php?id=73332&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73332&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73332&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73332&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73332&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73332&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73332&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73332&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73332&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73332&r=support Expected behavior: https://bugs.php.net/fix.php?id=73332&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73332&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73332&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73332&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73332&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73332&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73332&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73332&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73332&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73332&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73332&r=mysqlcfg

« previous php.bugs (#204867) next »