|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-31 11:03 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 23:00:02 2025 UTC |
Description: ------------ Nested includes that are in different directories now produce warnings. When file2 tries to accesses files in sale dirtory using just file name without the path it will produce warnings. Reproduce code: --------------- /// file1.php include('/includes/file2.php'); /// /includes/file2.php /// THIS PRODUCES WARNINGS include('header.include.php'); /// THIS WORKS include($_SERVER['DOCUMENT_ROOT'] . '/portal/include/v1/header.include.php'); Warning: filename: header.include.php, exec_fname: /var/www/html/portal/include/v1/indexPage.include.php, filepath: /var/www/html/portal/include/v1/header.include.php in /var/www/html/portal/include/v1/indexPage.include.php on line 2