Hi Marcus,
Will there be another way to do this or will they only be accessible from
the object?
- Frank
Hello Rob,
this is intended. The 5.2 solution is just a hack and returns a wrong
result in the first place. The hack was however introduced to make
development easier. Now with 5.3
Hi Frank,
Frank M. Kromann wrote:
Hello Everyon,
Casting a SimpleXML object to an array gives different results in PHP
5.2.5 and PHP 5.3-dev.
This is due to the implementation of the get_debug_info handler merged
from HEAD.
The same result happens when calling get_object_vars on a
This happens with many more functions. So i can verify this bug.
php -r echo md5(serialize(simplexml_load_file('example.xml'))) . PHP_EOL .
phpversion() . PHP_EOL;
Output PHP 5.2.5:
a6d7776fcb0e9c085b0d5972df792dac
5.2.5
Output PHP 5.3.0-dev (latest snap)
3e442cb7c8507c8941011735bb46e6de
Hi Frank,
please open a bugreport about this issue. This would start the internal
process of verifying this.
-- Marco
On Dec 7, 2007 11:09 PM, Frank M. Kromann [EMAIL PROTECTED] wrote:
Hello Everyon,
Casting a SimpleXML object to an array gives different results in PHP
5.2.5 and PHP