Bug #61423 [Com]: gzip compression fails
Edit report at https://bugs.php.net/bug.php?id=61423&edit=1 ID: 61423 Comment by: borrible13th at gmx dot net Reported by:borrible13th at gmx dot net Summary:gzip compression fails Status: Assigned Type: Bug Package:SOAP related Operating System: ALL PHP Version:5.4.0 Assigned To:iliaa Block user comment: N Private report: N New Comment: What's the current status? Previous Comments: [2012-04-12 23:24:19] borrible13th at gmx dot net Please cherry-pick commit 9c5ae99 into branch 5.4.1. The bugfix is still missing there, although the bug is listed as fixed in https://github.com/php/php- src/blob/PHP-5.4.1/NEWS#L85 (line 85). [2012-04-03 12:49:44] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=9c5ae9954f40c82ee98038ce3e528185090e4ba1 Log: Fixed bug #61423 (gzip compression fails). [2012-04-03 12:47:07] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=9c5ae9954f40c82ee98038ce3e528185090e4ba1 Log: Fixed bug #61423 (gzip compression fails). [2012-03-29 04:24:02] ili...@php.net Automatic comment on behalf of iliaal Revision: http://git.php.net/?p=php-src.git;a=commit;h=b4aea52682a6e7a8f0e2a7638ba37145cb6bf16d Log: Fixed bug #61423 (gzip compression fails). [2012-03-29 04:24:01] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=f9f631fb765dc08e3d62073b6eb35ce1b11db0e4 Log: Fixed bug #61423 (gzip compression fails). The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61423 -- Edit this bug report at https://bugs.php.net/bug.php?id=61423&edit=1
Bug #61423 [Asn]: gzip compression fails
Edit report at https://bugs.php.net/bug.php?id=61423&edit=1 ID: 61423 User updated by:borrible13th at gmx dot net Reported by:borrible13th at gmx dot net Summary:gzip compression fails Status: Assigned Type: Bug Package:SOAP related Operating System: ALL PHP Version:5.4.0 Assigned To:iliaa Block user comment: N Private report: N New Comment: Please cherry-pick commit 9c5ae99 into branch 5.4.1. The bugfix is still missing there, although the bug is listed as fixed in https://github.com/php/php- src/blob/PHP-5.4.1/NEWS#L85 (line 85). Previous Comments: [2012-04-03 12:49:44] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=9c5ae9954f40c82ee98038ce3e528185090e4ba1 Log: Fixed bug #61423 (gzip compression fails). [2012-04-03 12:47:07] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=9c5ae9954f40c82ee98038ce3e528185090e4ba1 Log: Fixed bug #61423 (gzip compression fails). [2012-03-29 04:24:02] ili...@php.net Automatic comment on behalf of iliaal Revision: http://git.php.net/?p=php-src.git;a=commit;h=b4aea52682a6e7a8f0e2a7638ba37145cb6bf16d Log: Fixed bug #61423 (gzip compression fails). [2012-03-29 04:24:01] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=f9f631fb765dc08e3d62073b6eb35ce1b11db0e4 Log: Fixed bug #61423 (gzip compression fails). [2012-03-26 13:28:51] borrible13th at gmx dot net "Merge branch 'PHP-5.3' into PHP-5.4" (7a1c765385) reverted this bugfix! :( Please re-commit it to branch PHP-5.4 only. Thanks in advance! The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61423 -- Edit this bug report at https://bugs.php.net/bug.php?id=61423&edit=1
Bug #61423 [Csd->Asn]: gzip compression fails
Edit report at https://bugs.php.net/bug.php?id=61423&edit=1 ID: 61423 User updated by:borrible13th at gmx dot net Reported by:borrible13th at gmx dot net Summary:gzip compression fails -Status: Closed +Status: Assigned Type: Bug Package:SOAP related Operating System: ALL PHP Version:5.4.0 Assigned To:iliaa Block user comment: N Private report: N New Comment: "Merge branch 'PHP-5.3' into PHP-5.4" (7a1c765385) reverted this bugfix! :( Please re-commit it to branch PHP-5.4 only. Thanks in advance! Previous Comments: [2012-03-24 16:28:33] il...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. ---- [2012-03-22 15:52:39] borrible13th at gmx dot net This bug is PHP 5.4 only, and not PHP 5.3! So, applying the bugfix on branch PHP-5.3 is totally wrong! Zlib introduces new constants ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, ZLIB_ENCODING_DEFLATE in PHP 5.4 and redefines the older constants of PHP 5.3 and older (FORCE_GZIP as ZLIB_ENCODING_GZIP and FORCE_DEFLATE as ZLIB_ENCODING_DEFLATE). Sorry for changing status again. --- Overview of constants in ext/zlib/php_zlib.h: PHP 5.3: CODING_GZIP 1 (registered as "FORCE_GZIP") CODING_DEFLATE 2 (registered as "FORCE_DEFLATE") PHP 5.4: PHP_ZLIB_ENCODING_RAW -0xf (registered as "ZLIB_ENCODING_RAW") PHP_ZLIB_ENCODING_GZIP 0x1f (31) (registered as "ZLIB_ENCODING_GZIP" and "FORCE_GZIP") PHP_ZLIB_ENCODING_DEFLATE 0x0f (15) (registered as "ZLIB_ENCODING_DEFLATE" and "FORCE_DEFLATE") [PHP_ZLIB_ENCODING_ANY 0x2f (47)] [2012-03-22 13:54:48] il...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. There was an issue with the fix push, all good now. [2012-03-22 13:48:23] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=f9f631fb765dc08e3d62073b6eb35ce1b11db0e4 Log: Fixed bug #61423 (gzip compression fails). [2012-03-22 13:47:22] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=f9f631fb765dc08e3d62073b6eb35ce1b11db0e4 Log: Fixed bug #61423 (gzip compression fails). The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61423 -- Edit this bug report at https://bugs.php.net/bug.php?id=61423&edit=1
Bug #61423 [Csd->Asn]: gzip compression fails
Edit report at https://bugs.php.net/bug.php?id=61423&edit=1 ID: 61423 User updated by:borrible13th at gmx dot net Reported by:borrible13th at gmx dot net Summary:gzip compression fails -Status: Closed +Status: Assigned Type: Bug Package:SOAP related Operating System: ALL PHP Version:5.4.0 Assigned To:iliaa Block user comment: N Private report: N New Comment: This bug is PHP 5.4 only, and not PHP 5.3! So, applying the bugfix on branch PHP-5.3 is totally wrong! Zlib introduces new constants ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, ZLIB_ENCODING_DEFLATE in PHP 5.4 and redefines the older constants of PHP 5.3 and older (FORCE_GZIP as ZLIB_ENCODING_GZIP and FORCE_DEFLATE as ZLIB_ENCODING_DEFLATE). Sorry for changing status again. --- Overview of constants in ext/zlib/php_zlib.h: PHP 5.3: CODING_GZIP 1 (registered as "FORCE_GZIP") CODING_DEFLATE 2 (registered as "FORCE_DEFLATE") PHP 5.4: PHP_ZLIB_ENCODING_RAW -0xf (registered as "ZLIB_ENCODING_RAW") PHP_ZLIB_ENCODING_GZIP 0x1f (31) (registered as "ZLIB_ENCODING_GZIP" and "FORCE_GZIP") PHP_ZLIB_ENCODING_DEFLATE 0x0f (15) (registered as "ZLIB_ENCODING_DEFLATE" and "FORCE_DEFLATE") [PHP_ZLIB_ENCODING_ANY 0x2f (47)] Previous Comments: [2012-03-22 13:54:48] il...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. There was an issue with the fix push, all good now. [2012-03-22 13:48:23] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=f9f631fb765dc08e3d62073b6eb35ce1b11db0e4 Log: Fixed bug #61423 (gzip compression fails). [2012-03-22 13:47:22] il...@php.net Automatic comment on behalf of iliaa Revision: http://git.php.net/?p=php-src.git;a=commit;h=f9f631fb765dc08e3d62073b6eb35ce1b11db0e4 Log: Fixed bug #61423 (gzip compression fails). [2012-03-22 13:17:01] ili...@php.net Automatic comment on behalf of iliaal Revision: http://git.php.net/?p=php-src.git;a=commit;h=b4aea52682a6e7a8f0e2a7638ba37145cb6bf16d Log: Fixed bug #61423 (gzip compression fails). [2012-03-22 13:16:44] ili...@php.net Automatic comment on behalf of iliaal Revision: http://git.php.net/?p=php-src.git;a=commit;h=b4aea52682a6e7a8f0e2a7638ba37145cb6bf16d Log: Fixed bug #61423 (gzip compression fails). The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61423 -- Edit this bug report at https://bugs.php.net/bug.php?id=61423&edit=1
Bug #61423 [Csd->Asn]: gzip compression fails
Edit report at https://bugs.php.net/bug.php?id=61423&edit=1 ID: 61423 User updated by:borrible13th at gmx dot net Reported by:borrible13th at gmx dot net Summary:gzip compression fails -Status: Closed +Status: Assigned Type: Bug Package:SOAP related Operating System: ALL PHP Version:5.4.0 Assigned To:iliaa Block user comment: N Private report: N New Comment: Changed status to "Assigned" due to last comment. Previous Comments: [2012-03-19 12:36:54] borrible13th at gmx dot net Can't see a bugfix in the source code whether in the branch for 5.4 or in the trunk! The magic number (1) is still hard coded. Do I miss something? [2012-03-18 15:15:47] il...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. [2012-03-17 02:01:29] borrible13th at gmx dot net Description: SOAP fails to compress with gzip encoding (compression level greater 0): it warns "encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE" and throws SoapFault with "SoapClient::__doRequest() returned non string value". Cause: Zlib introduces new constants ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, ZLIB_ENCODING_DEFLATE and redefines FORCE_GZIP as ZLIB_ENCODING_GZIP and FORCE_DEFLATE as ZLIB_ENCODING_DEFLATE. In php_http.c, line 263ff. the call to gzencode is prepared with an hard coded magic number (1) for the gzip encoding: gzencode(data, level, 1). It should be gzencode(data, level, FORCE_GZIP) or gzencode(data, level, ZLIB_ENCODING_GZIP), because the magic number is now defined as 0x1f (31). Test script: --- new SoapClient($wsdl, array('soap_version' => SOAP_1_2, 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 1 )); Expected result: Call gzencode(data, level, FORCE_GZIP) (or gzencode(data, level, ZLIB_ENCODING_GZIP)), so it returns compressed data. Actual result: -- gzencode(data, level, 1) is called, so it returns always false and warns "encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE". -- Edit this bug report at https://bugs.php.net/bug.php?id=61423&edit=1
Bug #61423 [Csd]: gzip compression fails
Edit report at https://bugs.php.net/bug.php?id=61423&edit=1 ID: 61423 User updated by:borrible13th at gmx dot net Reported by:borrible13th at gmx dot net Summary:gzip compression fails Status: Closed Type: Bug Package:SOAP related Operating System: ALL PHP Version:5.4.0 Assigned To:iliaa Block user comment: N Private report: N New Comment: Can't see a bugfix in the source code whether in the branch for 5.4 or in the trunk! The magic number (1) is still hard coded. Do I miss something? Previous Comments: [2012-03-18 15:15:47] il...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. [2012-03-17 02:01:29] borrible13th at gmx dot net Description: SOAP fails to compress with gzip encoding (compression level greater 0): it warns "encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE" and throws SoapFault with "SoapClient::__doRequest() returned non string value". Cause: Zlib introduces new constants ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, ZLIB_ENCODING_DEFLATE and redefines FORCE_GZIP as ZLIB_ENCODING_GZIP and FORCE_DEFLATE as ZLIB_ENCODING_DEFLATE. In php_http.c, line 263ff. the call to gzencode is prepared with an hard coded magic number (1) for the gzip encoding: gzencode(data, level, 1). It should be gzencode(data, level, FORCE_GZIP) or gzencode(data, level, ZLIB_ENCODING_GZIP), because the magic number is now defined as 0x1f (31). Test script: --- new SoapClient($wsdl, array('soap_version' => SOAP_1_2, 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 1 )); Expected result: Call gzencode(data, level, FORCE_GZIP) (or gzencode(data, level, ZLIB_ENCODING_GZIP)), so it returns compressed data. Actual result: -- gzencode(data, level, 1) is called, so it returns always false and warns "encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE". -- Edit this bug report at https://bugs.php.net/bug.php?id=61423&edit=1
[PHP-BUG] Bug #61423 [NEW]: gzip compression fails
From: Operating system: ALL PHP version: 5.4.0 Package: SOAP related Bug Type: Bug Bug description:gzip compression fails Description: SOAP fails to compress with gzip encoding (compression level greater 0): it warns "encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE" and throws SoapFault with "SoapClient::__doRequest() returned non string value". Cause: Zlib introduces new constants ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP, ZLIB_ENCODING_DEFLATE and redefines FORCE_GZIP as ZLIB_ENCODING_GZIP and FORCE_DEFLATE as ZLIB_ENCODING_DEFLATE. In php_http.c, line 263ff. the call to gzencode is prepared with an hard coded magic number (1) for the gzip encoding: gzencode(data, level, 1). It should be gzencode(data, level, FORCE_GZIP) or gzencode(data, level, ZLIB_ENCODING_GZIP), because the magic number is now defined as 0x1f (31). Test script: --- new SoapClient($wsdl, array('soap_version' => SOAP_1_2, 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 1 )); Expected result: Call gzencode(data, level, FORCE_GZIP) (or gzencode(data, level, ZLIB_ENCODING_GZIP)), so it returns compressed data. Actual result: -- gzencode(data, level, 1) is called, so it returns always false and warns "encoding mode must be either ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE". -- Edit bug report at https://bugs.php.net/bug.php?id=61423&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61423&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61423&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61423&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61423&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61423&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61423&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61423&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61423&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61423&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61423&r=support Expected behavior: https://bugs.php.net/fix.php?id=61423&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61423&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61423&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61423&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61423&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=61423&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61423&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61423&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61423&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61423&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61423&r=mysqlcfg