Anonymous | Login | Signup for a new account | 11-21-2024 22:21 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ 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 | Platform | ||||||||
Status | new | OS | ||||||||||
Projection | none | OS Version | ||||||||||
ETA | none | Fixed in Version | Product Version | 3.1.9 | ||||||||
Product Build | ||||||||||||
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 (www.php.net), 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"! |
|||||||||||
Steps To Reproduce | ||||||||||||
Additional Information |
-------------------- main file ----------------------- <?php 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) ---------------- <?php echo "Hello 2\n"; ?>-------------------- included file (hw2.txt) ---------------- |
|||||||||||
Attached Files | ||||||||||||
|
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. |