Gz.inflate()->inflate isn't fully streaming
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=968
Reported by Mirar , Idonex Heavy Industries mirar@roxen.com
inflate("")+inflate(data) ought to give the same result as inflate(data)+inflate("") but doesn't:
> function f=Gz.inflate()->inflate;
Result: inflate
> f("");
Error in gz_inflate->inflate(): -5
/usr/local/pike/7.1.17/lib/modules/Gz.so.inflate:
inflate("Error in gz_inflate->inflate():
-5\n")
-:1: ___Foo4711()
> function f=Gz.inflate()->inflate;
Result: inflate
> function g=Gz.deflate()->deflate;
Result: deflate
> f(g("hej"));
Result: "hej"
> f("");
Result: ""
Suggestion: Make a special case in inflate that returns "" if "" is the argument.