Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000510 [Quercus] minor always 12-19-05 05:49 12-30-05 18:26
Reporter bago View Status @0@  
Assigned To
Priority normal Resolution fixed Platform x86
Status closed   OS Windows XP
Projection none   OS Version 3.0.15
ETA none Fixed in Version 3.0.18 Product Version
  Product Build
Summary 0000510: include and include_once should be relative to the main php script
Description in quercus include and include_once take relative paths from the pwd where the current script is located. In the official php interpreter they take as "base path" the path of the first php script.
Steps To Reproduce main.php:
<? include('template/include.php'); ?>

<? include ('template/test.php'); ?>

<? print('it works'); ?>

Calling the main.php with the official php interpreter works, using quercus it doesn't work (I need to replace the 'template/test.php' with 'test.php'.

I agree that the quercus way is cleaner and better, but the official php works differently and quercus should try to mimic its misbehaviour.
Additional Information
Attached Files

- Relationships

- Notes
12-30-05 18:26


- Issue History
Date Modified Username Field Change
12-19-05 05:49 bago New Issue
12-30-05 18:26 ferg Status new => closed
12-30-05 18:26 ferg Note Added: 0000614
12-30-05 18:26 ferg Resolution open => fixed
12-30-05 18:26 ferg Fixed in Version  => 3.0.18

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker