Doc #69531 [Opn->Ver]: [TR] incorrect variable name

From: Date: Sat, 25 Apr 2015 17:16:59 +0000
Subject: Doc #69531 [Opn->Ver]: [TR] incorrect variable name
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12257@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69531&edit=1

 ID:                 69531
 Updated by:         cmb@php.net
 Reported by:        omerxkurt at gmail dot com
-Summary:            incorrect variable name
+Summary:            [TR] incorrect variable name
-Status:             Open
+Status:             Verified
 Type:               Documentation Problem
-Package:            Variables related
+Package:            Date/time related
 Operating System:   Windows 7
 PHP Version:        5.6.8
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[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)

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