kalle Thu Jan 15 07:55:18 2009 UTC Modified files: /php-src/ext/gd gd.c /php-src/ext/gd/tests imagefilter.phpt Log: Change optional parameter for IMG_FILTER_PIXELATE to be a boolean http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd.c?r1=1.404&r2=1.405&diff_format=u Index: php-src/ext/gd/gd.c diff -u php-src/ext/gd/gd.c:1.404 php-src/ext/gd/gd.c:1.405 --- php-src/ext/gd/gd.c:1.404 Wed Jan 14 18:57:51 2009 +++ php-src/ext/gd/gd.c Thu Jan 15 07:55:18 2009 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.404 2009/01/14 18:57:51 tabe Exp $ */ +/* $Id: gd.c,v 1.405 2009/01/15 07:55:18 kalle Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -4613,9 +4613,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.6&r2=1.7&diff_format=u Index: php-src/ext/gd/tests/imagefilter.phpt diff -u php-src/ext/gd/tests/imagefilter.phpt:1.6 php-src/ext/gd/tests/imagefilter.phpt:1.7 --- php-src/ext/gd/tests/imagefilter.phpt:1.6 Wed Jan 14 18:57:51 2009 +++ php-src/ext/gd/tests/imagefilter.phpt Thu Jan 15 07:55:18 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