pajoye          Fri Dec  9 13:07:59 2005 EDT

  Added files:                 (Branch: PHP_5_1)
    /php-src/ext/gd/tests       pngcomp.phpt 

  Modified files:              
    /php-src    NEWS 
    /php-src/ext/gd     gd.c gd_ctx.c 
  Log:
  - MFH, PNG compression support exposed
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2027.2.281&r2=1.2027.2.282&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.281 php-src/NEWS:1.2027.2.282
--- php-src/NEWS:1.2027.2.281   Fri Dec  9 12:01:48 2005
+++ php-src/NEWS        Fri Dec  9 13:07:54 2005
@@ -1,6 +1,7 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 200?, PHP 5.1.2
+- Addes PNG compression support (Pierre)
 - Added new extensions: (Ilia, Wez)
   . XMLWriter
   . Hash
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.312.2.6&r2=1.312.2.7&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.312.2.6 php-src/ext/gd/gd.c:1.312.2.7
--- php-src/ext/gd/gd.c:1.312.2.6       Mon Dec  5 21:25:21 2005
+++ php-src/ext/gd/gd.c Fri Dec  9 13:07:56 2005
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.312.2.6 2005/12/06 02:25:21 sniper Exp $ */
+/* $Id: gd.c,v 1.312.2.7 2005/12/09 18:07:56 pajoye Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
    Cold Spring Harbor Labs. */
@@ -1871,7 +1871,7 @@
 PHP_FUNCTION(imagepng)
 {
 #ifdef USE_GD_IOCTX
-       _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, 
PHP_GDIMG_TYPE_PNG, "PNG", gdImagePngCtx);
+       _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, 
PHP_GDIMG_TYPE_PNG, "PNG", gdImagePngCtxEx);
 #else
        _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_PNG, 
"PNG", gdImagePng);
 #endif
http://cvs.php.net/diff.php/php-src/ext/gd/gd_ctx.c?r1=1.22.2.2&r2=1.22.2.3&ty=u
Index: php-src/ext/gd/gd_ctx.c
diff -u php-src/ext/gd/gd_ctx.c:1.22.2.2 php-src/ext/gd/gd_ctx.c:1.22.2.3
--- php-src/ext/gd/gd_ctx.c:1.22.2.2    Tue Nov  1 12:05:09 2005
+++ php-src/ext/gd/gd_ctx.c     Fri Dec  9 13:07:57 2005
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd_ctx.c,v 1.22.2.2 2005/11/01 17:05:09 sniper Exp $ */
+/* $Id: gd_ctx.c,v 1.22.2.3 2005/12/09 18:07:57 pajoye Exp $ */
 
 #include "php_gd.h"
 
@@ -115,6 +115,7 @@
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"Invalid threshold value '%d'. It must be between 0 and 255", q);
                        }
                case PHP_GDIMG_TYPE_JPG:
+               case PHP_GDIMG_TYPE_PNG:
                        (*func_p)(im, ctx, q);
                        break;
                case PHP_GDIMG_TYPE_XBM:

http://cvs.php.net/co.php/php-src/ext/gd/tests/pngcomp.phpt?r=1.1&p=1
Index: php-src/ext/gd/tests/pngcomp.phpt
+++ php-src/ext/gd/tests/pngcomp.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to