note 48273 deleted from language.oop5.autoload by betz

From: Date: Sat, 18 Dec 2004 17:23:28 +0000
Subject: note 48273 deleted from language.oop5.autoload by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-81987@lists.php.net to get a copy of this message
Note Submitter: nigelf at esp dot co dot uk ---- Using session_start() will trigger __autoload. Eg: <? function __autoload ($className) { include_once($className.".php"); return; } session_start(); ?> will try and load a class called "User", generating an error. Checking for the file and silently ignoring it, if it doesn't exist, will get around this. ---- Reason: useless note

« previous php.notes (#81987) next »