Reply to Re: Is PHP mature?

Your name:

Reply:


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 :)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация