Re: Re: RE : [PHP-DEV] [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists()

From: Date: Sat, 06 Oct 2007 20:28:13 +0000
Subject: Re: Re: RE : [PHP-DEV] [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists()
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-32685@lists.php.net to get a copy of this message
Marcus Boerger wrote: > Hello Alexey, > > that is probably but i wouldn't like it. I think we are going to make it > to complex, tooooo Java like. Keep it simple. The only bad thing is a bit of > a slowdown - eventually - where not loading all classes always by include > isn't slower anyway. That said what we need to solve is the problem of > emitting usefull errors. So maybe the idea of knowing whether the class is > required or optional is the key here. Because once we have that we can > already do what we need. The one resplonsible handler simply emits the error > and we're done. If it doesn't know whether the class is necessary or not we > cannot do so. Hi, I agree, the two things on my wishlist for autoload are: 1) ability to customize the fatal error message 2) knowing whether the class is required or optional Greg

« previous php.internals (#32685) next »