Mantis - Quercus
Viewing Issue Advanced Details
2742 minor always 06-18-08 09:20 06-19-08 14:14
kubazygmunt  
nam  
normal  
closed 3.2.0  
fixed  
none    
none 3.2.0  
0002742: include. include_once don't return a Boolean value
In Quercus when the file is included a value NullValue.NULL is being returned.
( if file does not exist we get an error message but still value.Null is passed )

In php we have TRUE or FALSE depending whether file exists or not

PHP information:
http://uk.php.net/manual/en/function.include.php [^]

Affected code is:
package com.caucho.quercus.env;
Env.java
line: 3834
method: public Value include(Path scriptPwd, String include,
               boolean isRequire, boolean isOnce) { ... }


Notes
(0003211)
nam   
06-19-08 14:14   
php/0b2i
php/0b2j