Doc #65048 [NEW]: Wrong description of return values in German Documentation, bad doc in english

From: Date: Mon, 17 Jun 2013 14:20:36 +0000
Subject: Doc #65048 [NEW]: Wrong description of return values in German Documentation, bad doc in english
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9949@lists.php.net to get a copy of this message
From: ddpm at liscovius dot de Operating system: all PHP version: 5.5.0RC3 Package: Documentation problem Bug Type: Documentation Problem Bug description:Wrong description of return values in German Documentation, bad doc in english Description: ------------ --- From manual page: http://www.php.net/function.microtime#refsect1-function.microtime-returnvalues --- <?php echo microtime(); ?> 0.84538700 1371477251 Both values are returned as seconds when the function is called without parameters. The 1st part are the decimal place, the 2nd part is the integer part. Contrary to current documentation: ".. ist und Mikrosekunden die Anzahl an Mikrosekunden ist, die seit Sekunden vergangen sind." If you follow the german documentation, the expected functions return output would be 845387 1371477251, which isn't what microtime() returns. So fix the german documentation please and rewrite the english part too, because "By default, microtime() returns a string in the form "msec sec", where sec is the current time measured in the number of seconds since the Unix epoch (0:00:00 January 1, 1970 GMT), and msec is the number of microseconds that have elapsed since sec expressed in seconds. " is misleading until the you <b>read the last 3 words carefully</b> in the whole paragraph! Test script: --------------- <?php echo microtime(); ?> -- Edit bug report at https://bugs.php.net/bug.php?id=65048&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65048&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65048&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65048&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65048&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65048&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65048&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65048&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65048&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65048&r=support Expected behavior: https://bugs.php.net/fix.php?id=65048&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65048&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65048&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65048&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65048&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65048&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65048&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65048&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65048&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65048&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65048&r=mysqlcfg

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