Hello Jay, Yes, I´m running PHP5. And in my code you can see that the exception is throwed in an a call to a methode from an aggregated object in a suclassed one ($this->curl->GET()). The GET() methode throws the excpetion if curl_exec returns an error.
But one would expect that the exception should be caught after this call returns. Wouldn´t ???? Here is my code again for examplify: have something like this: //...cut... try { $res = $this->curl->GET($this->url[0]); } catch (Exception $e) { return FALSE; } //...cut... and in the curl class, something like this: //...cut... $result = curl_exec ($this->rs); $this->err = curl_errno($this->rs); if ($this->err) throw new Exception(curl_error($this->rs) . " (error in GET)"); //...cut... --- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > Try/Catch > > Well, may question is about the Scope of Throwed > Execeptions. > [/snip] > > What version of PHP are you running? Only V5 has > this kind of exception > handling. See http://www.php.net/zend-engine-2.php > > HTH! __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php