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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
12 + 9 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 25 03:01:29 2024 UTC