Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003724 [Quercus] major always 10-21-09 00:59 10-29-09 15:58
Reporter mastergaurav View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 3.1.9
Summary 0003724: include_once return value does not match specs
Description Hi,

I just downloaded resin-3.1.9 and tried to run a simple include_once code (given in additional information).

As per PHP website (, the return value of include_once must be true if the inclusion was successful.

I always get a return value as probably an empty string. Whatever be the value, it evaluates to "false"!
Additional Information -------------------- main file -----------------------
    header('Content-Type: text/plain');

    echo "Hello World\n";
    echo 'Folder: '.dirname(__FILE__)."\n";

    $x = include_once(dirname(__FILE__)."/hw2.php");
    echo "Value of x: ".$x." => ".($x ? "Yes" : "No")."\n";

    $x = include_once(dirname(__FILE__)."/hw2.php");
    echo "Value of x: ".$x." => ".($x ? "Yes" : "No")."\n";
-------------------- main file -----------------------

-------------------- included file (hw2.txt) ----------------
    echo "Hello 2\n";
?>-------------------- included file (hw2.txt) ----------------
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
10-21-09 00:59 mastergaurav New Issue
10-29-09 15:58 ferg Project Resin => Quercus

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