Doc #55264 [NEW]: Example does nothing
| From: | jeremybotto at gmail dot com | Date: | Fri, 22 Jul 2011 08:39:31 +0000 |
| Subject: | Doc #55264 [NEW]: Example does nothing | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-6912@lists.php.net to get a copy of this message | ||
From:
Operating system: php
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Example does nothing
Description:
------------
---
From manual page:
http://www.php.net/simplexmlelement.addattribute%23Examples
---
The sample code depends upon the inclusion of example code, example.php,
from an
earlier page. Without example.php, the sample code does not work. Running
the
sample code outputs the the input. There is no visible change on
inspection of
the files, directories, and source code. I tried stripping parts of
example.php
out, to see if the code sample actually added any attributes, and the
sample code
just throws errors when lines are removed. Basically, the code does
nothing to
'manipulate' XML. It simply verifies that a translation of the input
matches the
input.
Can we get an example that doesn't depend upon external files and that
actually
changes something, please?
Expected result:
----------------
Add an attribute to an XML file via PHP.
Actual result:
--------------
Does nothing.
--
Edit bug report at https://bugs.php.net/bug.php?id=55264&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55264&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55264&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55264&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55264&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55264&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55264&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55264&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55264&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55264&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55264&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55264&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55264&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55264&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55264&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55264&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55264&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55264&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55264&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55264&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55264&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55264&r=mysqlcfg