Doc #69531 [NEW]: incorrect variable name
| From: | omerxkurt at gmail dot com | Date: | Sat, 25 Apr 2015 13:53:00 +0000 |
| Subject: | Doc #69531 [NEW]: incorrect variable name | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-12256@lists.php.net to get a copy of this message | ||
From: omerxkurt at gmail dot com
Operating system: Windows 7
PHP version: 5.6.8
Package: Variables related
Bug Type: Documentation Problem
Bug description:incorrect variable name
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 bug report at https://bugs.php.net/bug.php?id=69531&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69531&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69531&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69531&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69531&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69531&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69531&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69531&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69531&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69531&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69531&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69531&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69531&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69531&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69531&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69531&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69531&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69531&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69531&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69531&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69531&r=mysqlcfg