php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69531 [TR] incorrect variable name
Submitted: 2015-04-25 13:52 UTC Modified: 2015-04-26 05:12 UTC
From: omerxkurt at gmail dot com Assigned: sobak (profile)
Status: Closed Package: Date/time related
PHP Version: 5.6.8 OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: omerxkurt at gmail dot com
New email:
PHP Version: OS:

 

 [2015-04-25 13:52 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-25 17:16 UTC] cmb@php.net
-Summary: incorrect variable name +Summary: [TR] incorrect variable name -Status: Open +Status: Verified -Package: Variables related +Package: Date/time related
 [2015-04-26 05:08 UTC] sobak@php.net
Automatic comment from SVN on behalf of sobak
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=336664
Log: Close bug #69531 (incorrect variable name)
 [2015-04-26 05:11 UTC] 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:12 UTC] sobak@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: sobak
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC