Mantis - Quercus
Viewing Issue Advanced Details
510 minor always 12-19-05 05:49 12-30-05 18:26
bago x86  
Windows XP  
normal 3.0.15  
closed  
fixed  
none    
none 3.0.18  
0000510: include and include_once should be relative to the main php script
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.
main.php:
<? include('template/include.php'); ?>

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

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.

Notes
(0000614)
ferg   
12-30-05 18:26   
php/0b0{g,h,i,j},3b0{g,h,i,j}