Doc #76490 [NEW]: Documentation of Directory::read() makes no sense
| From: | teo8976 at gmail dot com | Date: | Sun, 17 Jun 2018 14:51:57 +0000 |
| Subject: | Doc #76490 [NEW]: Documentation of Directory::read() makes no sense | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-15783@lists.php.net to get a copy of this message | ||
From: teo8976 at gmail dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Documentation of Directory::read() makes no sense
Description:
------------
---
From manual page: http://www.php.net/directory.read
---
All it says is:
"Same as readdir(), only dir_handle defaults to $this."
That makes no sense whatsoever. readdir() expects a RESOURCE as the
'dir_handle' argument, not an object of class Directory, so there's no
way that statement can be true, unless readdir($dir_handle) can also
accept a Directory object as handle, which is not documented. If that is
the case, then it should be properly documented in
http://php.net/manual/en/function.readdir.php
Perhaps that was meant to read:
"Same as readdir(), only dir_handle defaults to $this->handle."
--
Edit bug report at https://bugs.php.net/bug.php?id=76490&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76490&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76490&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76490&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76490&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76490&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76490&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76490&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76490&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76490&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76490&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76490&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76490&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76490&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76490&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76490&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76490&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76490&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76490&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76490&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76490&r=mysqlcfg