php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14847 relative links for including other scripts do not work anymore
Submitted: 2002-01-04 07:26 UTC Modified: 2002-08-22 12:08 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: mkindermann at nxn-software dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.1.1 OS: W2k
Private report: No CVE-ID: None
 [2002-01-04 07:26 UTC] mkindermann at nxn-software dot com
- just upgraded from 4.1.0 to 4.1.1 (win32 binaries)
- afterwards, no php-script-includes worked anymore (e.g. include ("includes/bugreport.php");)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-25 03:47 UTC] jav at eudoramail dot com
I have a similar problem using W98 SE + PWS and PHP 4.1.1.

I'll try give an explanation of what goes wrong

In the base directory I have a directory called "admin".

When I include a file menu.php from a file within the "admin" dir. I get a file menu.php but it comes from the base dir. When I remove this file from the base dir then the right file from the "admin" dir is included.

I've installed PHP 4.1.0 and things seem to work properly again.
 [2002-02-12 14:24 UTC] patrick at clovis dot org dot uk
Same OS and version as previous comments. What I have found is that the include () fails (and causes an error) if used inside a function within a class.
 [2002-08-22 12:08 UTC] iliaa@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 21:01:30 2025 UTC