Doc #63246 [Opn->Nab]: SplFileObject::__construct() example showing code in expected output box.
| From: | salathe@php.net | Date: | Tue, 09 Oct 2012 12:00:29 +0000 |
| Subject: | Doc #63246 [Opn->Nab]: SplFileObject::__construct() example showing code in expected output box. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8945@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63246&edit=1
ID: 63246
Updated by: salathe@php.net
Reported by: simon dot champion at connectionservices dot com
Summary: SplFileObject::__construct() example showing code in
expected output box.
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
As the page states, "This example opens the current file and iterates over its
contents line by line."
The whole point of that example is to open the file containing the example code
and echo each line one by one.
Previous Comments:
------------------------------------------------------------------------
[2012-10-09 10:39:17] simon dot champion at connectionservices dot com
Description:
------------
---
From manual page: http://www.php.net/splfileobject.construct#refsect1-splfileobject.construct-examples
---
Example #1 SplFileObject::__construct() example
In this example, the "expected output" box is currently showing the code, not the output
(ie it is identical to the box above it containing the code).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63246&edit=1