Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002223 [Quercus] minor always 12-02-07 22:33 02-01-08 03:14
Reporter maydimanche View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 3.1.3
Summary 0002223: set_include_path after include/require does no work well
Description 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";
?>
Additional Information
Attached Files

- Relationships

- Notes
(0002708)
nam
02-01-08 03:14

php/1a0z
 

- Issue History
Date Modified Username Field Change
12-02-07 22:33 maydimanche New Issue
02-01-08 03:14 nam Status new => assigned
02-01-08 03:14 nam Assigned To  => nam
02-01-08 03:14 nam Status assigned => closed
02-01-08 03:14 nam Note Added: 0002708
02-01-08 03:14 nam Resolution open => fixed
02-01-08 03:14 nam Fixed in Version  => 3.1.5


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