Re: Re: Feature Request #19411: Pre-existing classes defined WHERE?

From: Date: Wed, 18 Sep 2002 08:19:18 +0000
Subject: Re: Re: Feature Request #19411: Pre-existing classes defined WHERE?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-88375@lists.php.net to get a copy of this message
Yep At 07:45 18/09/2002, Wez Furlong wrote:
Hi Andi, In the case of the following code: class Foo {} class Foo {} PHP doesn't print a very helpful error message about the redefinition of class Foo, particularly when the class was defined in a separate file. The feature request is to have the error message to include the file/line of the first definition to help in tracking down problems. Is implementing this as simple as adding file/line members to zend_class_entry when the class is parsed/compiled and spitting them out when a redefinition error occurs? --Wez. -- Wez Furlong The Brain Room Ltd. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#88375) next »