Doc #75262 [NEW]: Round function description (in case of fail)

From: Date: Tue, 26 Sep 2017 20:34:31 +0000
Subject: Doc #75262 [NEW]: Round function description (in case of fail)
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14999@lists.php.net to get a copy of this message
From: vasekdvor at gmail dot com Operating system: Any PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Round function description (in case of fail) Description: ------------ I find out that there is no documentation about Math function "round()" , about this situation: 'What will do the round function when there is invalid entry being passed to a "float $val" ?'. I think, that in others functions there is always written that if something goes wrong, that function will result in FALSE.For example floor function contains "This function returns FALSE in case of an error" in "Return values" section. I have a script where i am using round function and accidentally happened to me that i (by mistake) gives that function, an empty variable and after that function has proceeded, i saw that the returned result is 0. It's really confusing finding out what function creates this result if you have complex script. Expected result: ---------------- I think that there should be described what will the function returns if something goes wrong. -- Edit bug report at https://bugs.php.net/bug.php?id=75262&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75262&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75262&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75262&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75262&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75262&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75262&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75262&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75262&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75262&r=support Expected behavior: https://bugs.php.net/fix.php?id=75262&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75262&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75262&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75262&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75262&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75262&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75262&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75262&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75262&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75262&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75262&r=mysqlcfg

« previous php.doc.bugs (#14999) next »