Bug 169637 - [PATCH] zlib conflict with gzhandler lang/php5 (php v.5.4.4)
Summary: [PATCH] zlib conflict with gzhandler lang/php5 (php v.5.4.4)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-04 11:30 UTC by Andrei Lavreniyuk
Modified: 2012-07-09 14:40 UTC (History)
0 users

See Also:


Attachments
file.diff (324 bytes, patch)
2012-07-04 11:30 UTC, Andrei Lavreniyuk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Lavreniyuk 2012-07-04 11:30:09 UTC
with php 5.3.13, 5.3.14 and 5.4.3 the script is working well while it delivers the following error with php 5.4.4:
ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib output compression'
webserver is nginx 1.2 without deflate mods using php via fcgi
php.ini setting 'zlib.output_compression' is turned off

The bug disappears if I add "php_flag zlib.output_compression off" in .htaccess file of specific host. So, probably, the bug is that global (from php.ini) "zlib.output_compression=off" setting is just _ignored_ in PHP 5.4.4.

Seems to be a problem in merging the fix to actual branch, which releases are made of.
This commit:
http://git.php.net/?p=php-src.git;a=commit;h=85a62e9086db7a8ddfcda4ab1279a2439935f8d5
really fixes the problem, but relevant line is not present in php-5.4.3 and php-5.4.4.



URL: https://bugs.php.net/bug.php?id=62335

Fix: Please add this patch.

Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-04 11:30:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-07-09 14:34:09 UTC
ale         2012-07-09 13:33:59 UTC

  FreeBSD ports repository

  Modified files:
    archivers/php5-zlib  Makefile 
  Added files:
    archivers/php5-zlib/files patch-zlib.c 
  Log:
  Fixed bug #55544 (ob_gzhandler always conflicts with
  zlib.output_compression).
  
  PR:             ports/169637
  Submitted by:   Andrei Lavreniyuk <andy.lavr@gmail.com>
  
  Revision  Changes    Path
  1.2       +1 -0      ports/archivers/php5-zlib/Makefile
  1.1       +10 -0     ports/archivers/php5-zlib/files/patch-zlib.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2012-07-09 14:34:11 UTC
State Changed
From-To: open->closed

Committed, thanks!