Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3402 | minor | always | 03-20-09 14:11 | 03-20-09 18:36 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in 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 { |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|