RE: [PHP-DEV] included_by() possible?

From: Date: Fri, 25 Aug 2000 20:32:34 +0000
Subject: RE: [PHP-DEV] included_by() possible?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-30696@lists.php.net to get a copy of this message
Nothing like being in a rush to avoid giving the exact reason to a wanted feature. I personnally see a good side and a bad side to this. Good side: Allow per owner configuration in the application/script. Bad side: Allow to intrude privacy of the including script. What one could have for information is the server address (eg.: www.site.com) and not the full URL to the including script but $PHP_SELF already does that so there is no need to go further than that IMHO. DarkByte -----Original Message----- From: André Langhorst [mailto:waldschrott@php.net] Sent: Friday, August 25, 2000 4:26 PM To: Flavien Lebarbé Cc: php-dev@lists.php.net Subject: Re: [PHP-DEV] included_by() possible? > > I did not have a look at the implementation of the include > functions, but this feature would make sense to me. > More than that, we could also use the history for error > messages (quite useful!) as well as detecting infinite loops > ('a.php' includes 'b.php' which includes 'a.php'...) that cause > crashes at the moment... > I would be interested on working on this if you think this is > desirable. I already thought at. I first thought it would be good to allow a parameter included_by() which tells the paraent level you want to get, this feature/change request would have nothing to do with the former one. Such a feature would be a great point, debugging scripts (escpecially large scripts you´re not working alone on). If you´d the possibility to access the parent include()er files, you would be able with a simple task to figure out which files are involved currently in the scripts and who includes who. I don´t think it´s possible with the current design and I have no time at the moment, to explain, why it would be that great, cos I´m in rush. I´ll write sth. later on this topic. regards -- · André Langhorst · t: +49 571 3201801 · · waldschrott@php.net · m: +49 173 9558736 · · PHP Quality Assurance · http://qa.php.net · -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#30696) next »