note 101502 modified in function.set-exception-handler by danbrown

From: Date: Tue, 21 Dec 2010 15:49:01 +0000
Subject: note 101502 modified in function.set-exception-handler by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175102@lists.php.net to get a copy of this message
In my case solution was simple for "exception thrown without a stack frame in Unknown on line 0" - just added "(string)" before simpleXML value: <?php $url = "http://www.example.com/"; $data = file_get_contents($url); $xml = new SimpleXMLElement($data); $myValue = (string)$xml->myValue; ?> --was-- In my case solution was simple for "exception thrown without a stack frame in Unknown on line 0" - just added "(string)" before simpleXML value: $url = "http://myUrl"; $data = file_get_contents($url); $xml = new SimpleXMLElement($data); $myValue = (string)$xml->myValue; http://php.net/manual/en/function.set-exception-handler.php

« previous php.notes (#175102) next »