#38797 [Opn->Fbk]: node name can not be "-" linked
| From: | tony2001@php.net | Date: | Tue, 12 Sep 2006 19:27:31 +0000 |
| Subject: | #38797 [Opn->Fbk]: node name can not be "-" linked | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102068@lists.php.net to get a copy of this message | ||
ID: 38797
Updated by: tony2001@php.net
Reported By: shihewang at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: SimpleXML related
PHP Version: 5.1.6
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2006-09-12 19:24:33] shihewang at yahoo dot com
Description:
------------
SimpleXml is very good but a small bug. When a node name contaiing '-',
will cause trouble.PHP Interpreter takes '-' as operator. For example,
when set a value to node named "operating-system":
$xml->operating-system = "Windows";
PHP5 interpreter will report Parse error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38797&edit=1