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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mikerlynn at gmail dot com
New email:
PHP Version: OS:

 

 [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: Wed Nov 06 02:01:30 2024 UTC