php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65048 [DE] Wrong description of return values in German Documentation
Submitted: 2013-06-17 14:20 UTC Modified: 2016-06-18 00:03 UTC
From: ddpm at liscovius dot de Assigned: cmb (profile)
Status: Closed Package: Translation problem
PHP Version: 5.5.0RC3 OS: all
Private report: No CVE-ID: None
 [2013-06-17 14:20 UTC] ddpm at liscovius dot de
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(); ?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-14 15:22 UTC] cmb@php.net
-Summary: Wrong description of return values in German Documentation, bad doc in english +Summary: [DE] Wrong description of return values in German Documentation -Status: Open +Status: Verified -Package: Documentation problem +Package: Translation problem
 [2016-06-14 15:22 UTC] cmb@php.net
The English manual page has been improved in the meantime; the
relevant clause is now:

| and msec measures microseconds that have elapsed since sec and
| is also expressed in seconds.

IMO, that's good enough. :)

The German translation, however, has to be fixed.
 [2016-06-18 00:03 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2016-06-18 00:03 UTC] cmb@php.net
> The German translation, however, has to be fixed.

Actually, it seems to have already been fixed:

| […] und Mikrosekunden die Anzahl an Mikrosekunden misst, die
| seit Sekunden vergangen sind, was ebenso in Sekunden ausgedrückt
| wird.

Hence, I'm closing this ticket. Nevertheless, thank you for the
report, and for helping us make PHP.net better. :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 02:01:29 2024 UTC