Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10618 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82247 invoked by uid 1010); 19 Jun 2004 16:07:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82223 invoked by uid 1007); 19 Jun 2004 16:07:04 -0000 Message-ID: <20040619160702.82169.qmail@pb1.pair.com> To: internals@lists.php.net Date: Sat, 19 Jun 2004 18:08:42 +0200 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.132 X-Posted-By: 194.9.223.26 Subject: throwing exceptions in __autoload From: rashid@ds.pg.gda.pl ("Robert Janeczek") both: __autoload and exceptions are great features in php5, but together they don`t seem to work well. i want to add some kind of error reporting to autoload which will throw exception if class file wasn`t found in my predefined directories. i`ve prepared my own exception class which should show me nice little error message. what i get is: Fatal error: __autoload(dupa) threw an exception of type 'Exception' in [blah blah] on line 87 Fatal error: Exception thrown without a stack frame in Unknown on line 0 the same happens when pure Exception class is used. 'try' block around full code doesn`t help. i use yesterday`s php5 windows build. should i report this as an error or exceptions should [not] work like this? rash