Re: PHP5 simpleXML bug or am i just being silly :)
| From: | William Bailey | Date: | Fri, 27 Feb 2004 09:37:51 +0000 |
| Subject: | Re: PHP5 simpleXML bug or am i just being silly :) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178993@lists.php.net to get a copy of this message | ||
To follow up my question from yesterday i have made a test script that will produce the problem that i am seeing.
The attached script will produce the following output on both my windows box (which runs a 2 day old php5 snapshot) and my FreeBSD box which uses a version out of the ports. The php version below is from the freeBSD installation...
[[::OUTPUT START::]]
Current PHP version is : 5.0.0a4-alexdupre
$xml is:
simplexml_element Object
(
[user] => Array
(
[0] => simplexml_element Object
(
[login] => user1
[password] => letMeIn
[site] => Array
(
[0] => www.pro-net.co.uk
[1] => www.example.com
)
)
[1] => simplexml_element Object
(
[login] => user2
[password] => myPassword
[site] => www.pro-net.co.uk
)
)) Trying to authenticate "user1" with password "letMeIn". $user is: simplexml_element Object (
[login] => user1
[password] => letMeIn
[site] => Array
(
[0] => www.pro-net.co.uk
[1] => www.example.com
)
)
$user->site is:
Array
(
[0] => simplexml_element Object
(
)
[1] => simplexml_element Object
(
)
)
$user->site[0] is:
simplexml_element Object
(
)
[[::OUTPUT END::]]