|
Posted by denisbytezone on 03/01/07 04:47
I'm happy to say that I have worked out the second 'problem'. Turns
out that assigning the SimpleXML result to my object was assigning a
document fragment, and not the string or int as I had assumed. So:
$this->name = $document->name
becomes
$this->name = (string)$document->name
and everything works as expected. Wonderful! However, the way PHP just
crashes and blames the session not being available is more than a
little misleading.
The first problem I still see as a problem however. Why can't it just
compare the two memory addresses of the two objects and say "both
objects are at the same location, therefore they are equal", instead
of trying to traverse the data structures?
Thanks to those with helpful answers, raspberries to those without :)
Navigation:
[Reply to this message]
|