Doc #53186 [Com]: Error in the example
| From: | frozenfire at thefrozenfire dot com | Date: | Fri, 05 Nov 2010 21:05:18 +0000 |
| Subject: | Doc #53186 [Com]: Error in the example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5470@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
Comment by: frozenfire at thefrozenfire dot com
Reported by: bruce at z2a dot org
Summary: Error in the example
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
[2010-10-27 18:22:51] bruce at z2a dot org
Description:
------------
This example doesn't work. The output is supposed to be "movie" but
there is no movie in the inputs.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53186&edit=1