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

From: Date: Wed, 18 Sep 2002 04:45:24 +0000
Subject: Re: Feature Request #19411: Pre-existing classes defined WHERE?
Groups: php.dev 
Request: Send a blank email to php-dev+get-88374@lists.php.net to get a copy of this message
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.

« previous php.dev (#88374) next »