note 68573 added to function.get-included-files

From: Date: Wed, 02 Aug 2006 10:42:11 +0000
Subject: note 68573 added to function.get-included-files
Groups: php.notes 
Request: Send a blank email to php-notes+get-115441@lists.php.net to get a copy of this message
The example is simply wrong as the behaviour of this function changed. It now in fact returns some absolut filenames (like you were using realpath() on them). In the past it returned the same string that was used to include/require the file. example (file in /var/www ): require('../www/somefile.php'); would be listed as ../www/somefile.php in the past but now as /var/www/somefile.php . The problem with the prior behaviour was that when you changed the working directory and used realpath() on the filenames than you got the wrong file or FALSE. I think the behviour was changed with PHP 5.0.0 (and therefor PHP 4.3.0) but I'm not sure. It is not mentioned here in the manual unfortunately. ---- Server IP: 217.160.72.57 Probable Submitter: 80.140.227.167 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.get-included-files.php Edit -- https://master.php.net/note/edit/68573 Del: integrated -- https://master.php.net/note/delete/68573/integrated Del: useless -- https://master.php.net/note/delete/68573/useless Del: bad code -- https://master.php.net/note/delete/68573/bad+code Del: spam -- https://master.php.net/note/delete/68573/spam Del: non-english -- https://master.php.net/note/delete/68573/non-english Del: in docs -- https://master.php.net/note/delete/68573/in+docs Del: other reasons-- https://master.php.net/note/delete/68573 Reject -- https://master.php.net/note/reject/68573 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115441) next »