Doc #69531 [Ver->Csd]: [TR] incorrect variable name
Edit report at https://bugs.php.net/bug.php?id=69531&edit=1
ID: 69531
Updated by: sobak@php.net
Reported by: omerxkurt at gmail dot com
Summary: [TR] incorrect variable name
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Date/time related
Operating System: Windows 7
PHP Version: 5.6.8
-Assigned To:
+Assigned To: sobak
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-04-26 05:11:46] sobak@php.net
I fixed this particular issue, however, be aware that Turkish translation has a very high level of
outdated files: http://doc.php.net/revcheck.php?p=graph&lang=tr
On the other hand, amount of up-to-date translated files is also on very good level, so feel free to
contribute to translation into your language.
------------------------------------------------------------------------
[2015-04-26 05:08:08] sobak@php.net
Automatic comment from SVN on behalf of sobak
Revision: http://svn.php.net/viewvc/?view=revision&revision=336664
Log: Close bug #69531 (incorrect variable name)
------------------------------------------------------------------------
[2015-04-25 13:52:59] omerxkurt at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.microtime
---
Your article function.microtime is translated to Turkish. Variables is translated to Turkish but
variable $time is undefined. Please change this variable name to $sure. Thank you!
Test script:
---------------
<?php
/**
* PHP 5 davranıÅını taklit eden basit bir iÅlev
*/
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$sure_baslangici = microtime_float();
// Biraz bekle
usleep(100);
$sure_bitimi = microtime_float();
$sure = $sure_bitimi - $sure_baslangici;
echo "Bekleme süresi: $time saniye\n";
?>
Expected result:
----------------
PHP Notice: Undefined variable: time in C:\inetpub\wwwroot\file.php on line 19
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69531&edit=1
Thread (4 messages)