note 68573 deleted from function.get-included-files by danbrown

From: Date: Sun, 20 Jul 2008 00:03:44 +0000
Subject: note 68573 deleted from function.get-included-files by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141818@lists.php.net to get a copy of this message
Note Submitter: warhog at warhog dot net ---- 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.

« previous php.notes (#141818) next »