| Last change
                  on this file since 1073 was
                  1035,
                  checked in by mitchb, 17 years ago | 
        
          | Fix "the-bug" (non-empty content in 304s) in PHP (patch by ezyang) and Apache
PHP should not produce any output, even if zlib.output_compression is
on, if the HTTP response code is 204 or 304 (no content or not modified).
Fixes PHP bug #42362 with php.cvs #56693, see:
http://bugs.php.net/bug.php?id=42362
http://news.php.net/php.cvs/56693
http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/zlib.c?r1=1.183.2.6.2.5.2.9&r2=1.183.2.6.2.5.2.10
Apache should discard any body provided by a script (in any language, not
just PHP) when the status is "no content" or "not modified".
Addresses part of Apache bug #40953, see:
https://issues.apache.org/bugzilla/show_bug.cgi?id=40953#c7
Solves scripts.mit.edu support issue #773060, see:
https://help.mit.edu/Ticket/UpdateCallCenter.html?id=773060
https://diswww.mit.edu/charon/scripts/24018 | 
        | File size:
            925 bytes | 
      
      
        
  | Rev | Line |  | 
|---|
| [1035] | 1 | --- php.spec.orig       2009-03-28 14:41:37.000000000 -0400 | 
|---|
|  | 2 | +++ php.spec    2009-03-28 14:46:46.000000000 -0400 | 
|---|
|  | 3 | @@ -8,7 +8,7 @@ | 
|---|
|  | 4 | Summary: PHP scripting language for creating dynamic web sites | 
|---|
|  | 5 | Name: php | 
|---|
|  | 6 | Version: 5.2.8 | 
|---|
|  | 7 | -Release: 1%{?dist} | 
|---|
|  | 8 | +Release: 1%{?dist}.scripts.%{scriptsversion} | 
|---|
|  | 9 | License: PHP | 
|---|
|  | 10 | Group: Development/Languages | 
|---|
|  | 11 | URL: http://www.php.net/ | 
|---|
|  | 12 | @@ -39,6 +39,10 @@ | 
|---|
|  | 13 | Patch50: php-5.2.7-tests-dashn.patch | 
|---|
|  | 14 | Patch51: php-5.0.4-tests-wddx.patch | 
|---|
|  | 15 |  | 
|---|
|  | 16 | +# Fix for the-bug (PHP bug #42362, php.cvs #56693) | 
|---|
|  | 17 | +Provides: scripts-php | 
|---|
|  | 18 | +Patch100: php-scripts-304.patch | 
|---|
|  | 19 | + | 
|---|
|  | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | 
|---|
|  | 21 |  | 
|---|
|  | 22 | BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel | 
|---|
|  | 23 | @@ -377,6 +381,8 @@ | 
|---|
|  | 24 | %patch50 -p1 -b .tests-dashn | 
|---|
|  | 25 | %patch51 -p1 -b .tests-wddx | 
|---|
|  | 26 |  | 
|---|
|  | 27 | +%patch100 -p1 -b .scripts-304 | 
|---|
|  | 28 | + | 
|---|
|  | 29 | # Prevent %%doc confusion over LICENSE files | 
|---|
|  | 30 | cp Zend/LICENSE Zend/ZEND_LICENSE | 
|---|
|  | 31 | cp TSRM/LICENSE TSRM_LICENSE | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.