public static PhpArray GzFile(ScriptContext context, string filename, int use_include_path) { PhpStream fs = (PhpStream)GzOpen(filename, "r", use_include_path); if (fs == null) { return(null); } PhpArray returnValue = new PhpArray(); int blockLength = 8192; while (!fs.Eof) { string value = PhpStream.AsText(fs.ReadData(blockLength, true)); returnValue.Add(Core.Convert.Quote(value, context)); } return(returnValue); }