Mantis - Quercus
Viewing Issue Advanced Details
2223 minor always 12-02-07 22:33 02-01-08 03:14
maydimanche  
nam  
normal  
closed 3.1.3  
fixed  
none    
none 3.1.5  
0002223: set_include_path after include/require does no work well
Resin-3.1.s071129
Calling set_include_path after calling functions that use include_path causes Warning level error.
On PHP 4.3, 5.2 this sample works correctly. Such kind of script used to include configuration file that contains path as variable.
(found on MODx cms)

<?php
header('Content-type: text/plain');
include dirname(__FILE__).'./test/hello.php'; //If you remove this, no error happen.
echo get_include_path()."\n"; // nothing
set_include_path(dirname(__FILE__).'/test/');
echo get_include_path()."\n"; // include_path seem to be OK...
include 'hello.php'; // Warning: 'hello.php' is not a valid path
?>

<?php // test/hello.php
echo "hello world„n";
?>

Notes
(0002708)
nam   
02-01-08 03:14   
php/1a0z