Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4370 | major | always | 02-01-11 08:05 | 02-02-11 04:15 | |
|
|||||
Reporter: | geleont | Platform: | |||
Assigned To: | domdorn | OS: | |||
Priority: | normal | OS Version: | |||
Status: | resolved | Product Version: | 4.0.14 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0004370: file_get_contents in quercus 4.0.11 has bug. | ||||
Description: |
Minimal code to reproduce: <?php file_put_contents("123", "Hello",LOCK_EX); ?> Cause java.lang.NullPointerException com.caucho.quercus.lib.file.FileOutput.unlock(FileOutput.java:197) com.caucho.quercus.lib.file.FileModule.flock(FileModule.java:1087) com.caucho.quercus.lib.file.FileModule.file_put_contents(FileModule.java:1045) I reviewed source code of quercus FileModule module and I am sure it happens because we close [B]os[/B], which is linked on the same object as s(BinaryOutput os = (BinaryOutput) s;) and after that we trying to make flock(env, (LockableStream) s, LOCK_UN, null); on that stream.IN file_put_contents function from FileModule |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|