Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16970 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63369 invoked by uid 1010); 28 Jun 2005 22:01:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63354 invoked from network); 28 Jun 2005 22:01:31 -0000 Received: from unknown (HELO php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2005 22:01:31 -0000 X-Host-Fingerprint: 82.165.35.142 thinkforge.org Linux 2.4/2.6 Received: from ([82.165.35.142:12395] helo=mail.mayflowersystem.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 30/95-00424-9B8C1C24 for ; Tue, 28 Jun 2005 18:01:29 -0400 Received: (qmail 28207 invoked by uid 60010); 28 Jun 2005 22:01:25 -0000 Received: from 82.135.8.99 by mail (envelope-from , uid 89) with qmail-scanner-1.24 (uvscan: v4.3.20/v4362. spamassassin: 2.63. Clear:RC:1(82.135.8.99):. Processed in 0.514346 secs); 28 Jun 2005 22:01:25 -0000 Received: from unknown (HELO ?192.168.1.102?) (schlueter@mayflower.de@82.135.8.99) by 0 with (RC4-MD5 encrypted) SMTP; 28 Jun 2005 22:01:24 -0000 To: internals@lists.php.net Date: Wed, 29 Jun 2005 00:01:16 +0200 User-Agent: KMail/1.8 Cc: James Crumpton References: <42C1C1D3.7060601@safesearching.com> In-Reply-To: <42C1C1D3.7060601@safesearching.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200506290001.17070.johannes@php.net> Subject: Re: [PHP-DEV] class_exists and __autoload From: johannes@php.net (Johannes Schlueter) Hi James, On Tuesday 28 June 2005 23:32, James Crumpton wrote: > function __autoload($name) { > require_once($name); > } > I just don't understand the logic behind throwing a fatal error when I'm > writing code to try and prevent one from occurring. You should add error checking to your autoload function. Either by some file_exists()/is_readable() check or by using include instead of require (maybe even with suppressing errors if you dislike is_readable()...) For more please ask on the generals list or some other support forum. johannes