note 19530 added to function.require-once

From: Date: Fri, 01 Mar 2002 22:30:12 +0000
Subject: note 19530 added to function.require-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-27247@lists.php.net to get a copy of this message
An interesting thing to note about require_once() is that if you have multiple directories in your include_path, and you have a copies of the file being required in more than one of those directories, you may still end up pulling in its contents more than once. This will lead to a fatal "cannot redeclare" error. This was with PHP 4.1.2. Haven't tested on other versions. -- http://www.php.net/manual/en/function.require-once.php http://master.php.net/manage/user-notes.php?action=edit+19530 http://master.php.net/manage/user-notes.php?action=delete+19530 http://master.php.net/manage/user-notes.php?action=reject+19530

« previous php.notes (#27247) next »