Anonymous | Login | Signup for a new account | 11-17-2024 00:36 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003402 | [Quercus] | minor | always | 03-20-09 14:11 | 03-20-09 18:36 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.0 | ||||||
Summary | 0003402: exit() prints numeric exit codes to user | ||||||||
Description |
<?php function my_exit($val=0) { if (time() == 0) { do_something_else($val); } exit($val); } my_exit(0); Regular PHP and Quercus in interpreted mode print nothing. Quercus in compiled mode prints "0". Patch: --- a/modules/quercus/src/com/caucho/quercus/env/Env.java +++ b/modules/quercus/src/com/caucho/quercus/env/Env.java @@ -5244,7 +5244,7 @@ public class Env { */ public Value exit(Value msg) { - if (msg.isNull() || msg instanceof LongValue) + if (msg.isNull() || msg.isLongConvertible()) return exit(); try { |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |