Mantis - Quercus
Viewing Issue Advanced Details
1256 minor always 07-18-06 13:44 04-30-07 18:59
koreth  
nam  
normal  
closed 3.0.19  
fixed  
none    
none 3.1.1  
0001256: Can't do error suppression on void functions
PHP:

<?php
@closedir($foo);
?>

This produces an invalid Java source file when Quercus compiles it:

[13:42:39.869] com.caucho.java.JavaCompileException: /Users/sgrimm/resin/trunk/webapps/test/WEB-INF/work/_quercus/_test__php.java:54: 'void' type not allowed here
[13:42:39.869] env.suppress(env.setErrorMask(0), com.caucho.quercus.lib.file.FileModule.closedir(env, ((com.caucho.quercus.lib.file.DirectoryValue) env.cast(com.caucho.quercus.lib.file.DirectoryValue.class, (v_foo = env.getVar("foo")).toValue()))))
[13:42:39.869] ^
[13:42:39.869] 1 error

Notes
(0001883)
nam   
04-30-07 18:59   
php/3c64

issue was fixed some time ago