php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26419 ob_gzhandler and pdf
Submitted: 2003-11-26 03:35 UTC Modified: 2003-11-26 16:03 UTC
From: giuseppe dot costagliola at sanpaolowm dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.3 OS: OS400
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: giuseppe dot costagliola at sanpaolowm dot com
New email:
PHP Version: OS:

 

 [2003-11-26 03:35 UTC] giuseppe dot costagliola at sanpaolowm dot com
Description:
------------
We configured "output_handler = ob_gzhandler" and it works fine for any text/html output. 

However when our php page creates a pdf to be seen online, the IE prompts for download (while on Netscape it's displayed correctly).   


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-26 04:18 UTC] giuseppe dot costagliola at sanpaolowm dot com
We tried to set 
zlib.output_compression = on
in php.ini and disable with 
ini_set("zlib.output_compression","off")
right before sending pdf and this way seems to work.
 [2003-11-26 10:22 UTC] jay@php.net
Since you fixed the problem (which is most likely an IE 
bug), bogusing... 
 
J 
 [2003-11-26 16:03 UTC] giuseppe dot costagliola at sanpaolowm dot com
I did NOT fixed the problem. This was just a circumvention. zlib.output_compression and output_handler do not perform the same (at least on our browsers).
I think that because ob_gzhandler combined with pdf fails with IE (that is used by the majority of users, even if it has a lot of bugs) and not with Netscape this question wouldn't be shortly put in the bogus can. 
I will repost in another way just to make things more clear.
Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 12 04:01:28 2024 UTC