kalle           Thu Jan 15 07:57:11 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src    NEWS 
    /php-src/ext/gd     gd.c 
    /php-src/ext/gd/tests       imagefilter.phpt 
  Log:
  MFH: Change optional parameter for IMG_FILTER_PIXELATE to be a boolean
  Added missing NEWS log entry for the new pixelation filter
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.457&r2=1.2027.2.547.2.965.2.458&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.457 
php-src/NEWS:1.2027.2.547.2.965.2.458
--- php-src/NEWS:1.2027.2.547.2.965.2.457       Wed Jan 14 15:53:03 2009
+++ php-src/NEWS        Thu Jan 15 07:57:11 2009
@@ -35,6 +35,7 @@
 - Added depth parameter to json_decode() to lower the nesting depth from the
   maximum if required. (Scott)
 - Added ICU support to SQLite3 when using the bundled version. (Scott)
+- Added pixelation support in imagefilter(). (Takeshi Abe, Kalle)
 
 - Re-added socket_create_pair() for Windows in sockets extension. (Kalle)
 
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd.c?r1=1.312.2.20.2.32.2.28&r2=1.312.2.20.2.32.2.29&diff_format=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.312.2.20.2.32.2.28 
php-src/ext/gd/gd.c:1.312.2.20.2.32.2.29
--- php-src/ext/gd/gd.c:1.312.2.20.2.32.2.28    Wed Jan 14 19:06:01 2009
+++ php-src/ext/gd/gd.c Thu Jan 15 07:57:11 2009
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.312.2.20.2.32.2.28 2009/01/14 19:06:01 tabe Exp $ */
+/* $Id: gd.c,v 1.312.2.20.2.32.2.29 2009/01/15 07:57:11 kalle Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
    Cold Spring Harbor Labs. */
@@ -4922,9 +4922,10 @@
 {
        zval *IM;
        gdImagePtr im;
-       long tmp, blocksize, mode = 0;
+       long tmp, blocksize;
+       zend_bool mode = 0;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rll|l", &IM, 
&tmp, &blocksize, &mode) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rll|b", &IM, 
&tmp, &blocksize, &mode) == FAILURE) {
                RETURN_FALSE;
        }
 
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/imagefilter.phpt?r1=1.4.4.1.2.1&r2=1.4.4.1.2.2&diff_format=u
Index: php-src/ext/gd/tests/imagefilter.phpt
diff -u php-src/ext/gd/tests/imagefilter.phpt:1.4.4.1.2.1 
php-src/ext/gd/tests/imagefilter.phpt:1.4.4.1.2.2
--- php-src/ext/gd/tests/imagefilter.phpt:1.4.4.1.2.1   Wed Jan 14 19:06:12 2009
+++ php-src/ext/gd/tests/imagefilter.phpt       Thu Jan 15 07:57:11 2009
@@ -75,7 +75,7 @@
 
        $im = imagecreatefrompng($SOURCE_IMG);
        
-       if (imagefilter($im, IMG_FILTER_PIXELATE, 5, 1)) {
+       if (imagefilter($im, IMG_FILTER_PIXELATE, 5, true)) {
                imagepng($im, $SAVE_DIR . "/IMG_FILTER_PIXELATE.png");
                echo "IMG_FILTER_PIXELATE success\n";
                unlink($SAVE_DIR . "/IMG_FILTER_PIXELATE.png");



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

Reply via email to