Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003171 [Quercus] minor always 12-12-08 19:18 12-14-08 15:54
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 4.0.0
  Product Build
Summary 0003171: Can't read compressed file
Description <?php
$x = file_get_contents('compress.zlib:///dev/null'); [^]

Fails with:

[19:18:00.660] {http--8080-15} java.lang.ClassCastException: com.caucho.quercus.env.StringBuilderValue cannot be cast to com.caucho.quercus.env.ArrayValue
[19:18:00.660] {http--8080-15} at com.caucho.quercus.lib.file.ZlibProtocolWrapper.fopen(ZlibProtocolWrapper.java:54)
[19:18:00.660] {http--8080-15} at com.caucho.quercus.lib.file.FileModule.fopen(FileModule.java:1346)
[19:18:00.660] {http--8080-15} at com.caucho.quercus.lib.file.FileModule.file_get_contents(FileModule.java:938)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003618)
koreth
12-13-08 11:19

This patch seems to fix it:

--- a/modules/quercus/src/com/caucho/quercus/lib/file/ZlibProtocolWrapper.java
+++ b/modules/quercus/src/com/caucho/quercus/lib/file/ZlibProtocolWrapper.java
@@ -51,7 +51,7 @@ public class ZlibProtocolWrapper extends ProtocolWrapper {
     boolean useIncludePath =
       (options.toLong() & StreamModule.STREAM_USE_PATH) != 0;
 
- ArrayValue components = (ArrayValue) UrlModule.parse_url(env, path, NullValue.NULL);
+ ArrayValue components = (ArrayValue) UrlModule.parse_url(env, path, DefaultValue.DEFAULT);
 
     Value pathComponent = components.get(env.createString("path"));
 
(0003629)
ferg
12-14-08 15:54

php/1452
 

- Issue History
Date Modified Username Field Change
12-12-08 19:18 koreth New Issue
12-13-08 11:19 koreth Note Added: 0003618
12-14-08 15:54 ferg Note Added: 0003629
12-14-08 15:54 ferg Assigned To  => ferg
12-14-08 15:54 ferg Status new => closed
12-14-08 15:54 ferg Resolution open => fixed
12-14-08 15:54 ferg Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker