Doc #80683 [NEW]: Untrue statement about microtime() precision

From: Date: Thu, 28 Jan 2021 19:03:51 +0000
Subject: Doc #80683 [NEW]: Untrue statement about microtime() precision
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18462@lists.php.net to get a copy of this message
From: php4fan at gmail dot com Operating system: linux PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Untrue statement about microtime() precision Description: ------------ --- From manual page: https://php.net/function.microtime --- It states: "If as_float is set to true, then microtime() returns a float, which represents the current time in seconds since the Unix epoch accurate to the nearest microsecond." That's not true. The value returned as float is not accurate to the nearest microsecond. Now I guess that's obvious if you know what the precision of a float is, but if I read a sentence that says "accurate to the nearest microsecond", I'm not going to do maths, I'll assume that who wrote the sentence already did that for me, so if they say "accurate to the nearest microsecond" I'll assume they figured out that the typical precision of a float is enough to give you a 1-microsecond precision on such a number. -- Edit bug report at https://bugs.php.net/bug.php?id=80683&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80683&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80683&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80683&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80683&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80683&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80683&r=support Expected behavior: https://bugs.php.net/fix.php?id=80683&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80683&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80683&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80683&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80683&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80683&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80683&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80683&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80683&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80683&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80683&r=mysqlcfg

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