Re: 2 classes with the same name

From: Date: Mon, 15 Mar 2004 00:16:07 +0000
Subject: Re: 2 classes with the same name
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11288@lists.php.net to get a copy of this message
Hello, On 03/14/2004 09:03 PM, Kerphi wrote:
I've got a problem in using PEAR::Log package because I want to use it with another framework (phpmvc) which contains also a Log classe into its API. So an error appears : Log classe is redefined. Is there any elegant way to solve this problem ? (I dont want to rename phpmvc or pear API)
No, not even in PHP 5 because the namespaces feature was cancelled. You need to rename one of the classes. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html

« previous php.pear.general (#11288) next »