php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57210 include warnings with 3.0.11
Submitted: 2006-08-31 11:01 UTC Modified: 2006-08-31 11:03 UTC
From: mikerlynn at gmail dot com Assigned:
Status: Duplicate Package: APC (PECL)
PHP Version: 5.1.4 OS: fc5
Private report: No CVE-ID: None
 [2006-08-31 11:01 UTC] mikerlynn at gmail dot com
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-31 11:03 UTC] rasmus@php.net
We know, this was fixed already.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 07 06:01:29 2024 UTC