Doc #53186 [Opn->Asn]: Error in the example
| From: | frozenfire@php.net | Date: | Fri, 05 Nov 2010 23:05:16 +0000 |
| Subject: | Doc #53186 [Opn->Asn]: Error in the example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5472@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53186&edit=1
ID: 53186
Updated by: frozenfire@php.net
Reported by: bruce at z2a dot org
Summary: Error in the example
-Status: Open
+Status: Assigned
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: frozenfire
Block user comment: N
Previous Comments:
------------------------------------------------------------------------
[2010-11-05 22:05:18] frozenfire at thefrozenfire dot com
I have added a patch which adds a note to each example section which
makes use of the example.php include, noting where that code can be
found. This should clear up any confusion to that effect.
Tangentially, the SimpleXMLElement::getName() example does indeed
function as expected.
------------------------------------------------------------------------
[2010-10-28 11:35:41] rquadling@php.net
Relating to Bruce's comment 2010-10-27 17:48 UTC,
http://bugs.php.net/bug.php?
id=53189
------------------------------------------------------------------------
[2010-10-27 23:51:07] salathe@php.net
Many of the SimpleXML examples include an "example.php" file that can be
found here: http://php.net/manual/en/simplexml.examples-basic.php
We do try to make examples as standalone as possible so I can certainly
understand the confusion here. Perhaps it is worth linking back to the
page above from those examples which make use of that example.php file.
------------------------------------------------------------------------
[2010-10-27 19:48:12] bruce at z2a dot org
Oops... I thought the "Report A Bug" would include a back pointer to the
page.
It is on http://us2.php.net/manual/en/simplexmlelement.getName.php.
I think the example is building on a previous page but it would be
better if you could understand the getName example on the page where it
is described.
------------------------------------------------------------------------
[2010-10-27 18:26:09] salathe@php.net
Which page is this error on?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=53186
--
Edit this bug report at http://bugs.php.net/bug.php?id=53186&edit=1