note 76647 added to ref.simplexml
| From: | jebner at computacenter dot com | Date: | Tue, 24 Jul 2007 14:41:52 +0000 |
| Subject: | note 76647 added to ref.simplexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128886@lists.php.net to get a copy of this message | ||
When using Apache & PHP on windows and you try to do a direct typecast to string or integer of
your SimpleXMLElement objects, your Apache MAY crash (mine did :-( ).
would look like this:
$id = (int)$xml->id;
so try other things like firts converting it to a string with strval() NOT direct typecast - this
won't work neither.
seems like direct typecast doesnt work on objects (doesn' suprise me very much)
----
Server IP: 217.160.72.57
Probable Submitter: 195.36.75.26
----
Manual Page -- http://www.php.net/manual/en/ref.simplexml.php
Edit -- https://master.php.net/note/edit/76647
Del: integrated -- https://master.php.net/note/delete/76647/integrated
Del: useless -- https://master.php.net/note/delete/76647/useless
Del: bad code -- https://master.php.net/note/delete/76647/bad+code
Del: spam -- https://master.php.net/note/delete/76647/spam
Del: non-english -- https://master.php.net/note/delete/76647/non-english
Del: in docs -- https://master.php.net/note/delete/76647/in+docs
Del: other reasons-- https://master.php.net/note/delete/76647
Reject -- https://master.php.net/note/reject/76647
Search -- https://master.php.net/manage/user-notes.php