1 diff -urbB php-5.1.0RC1.org/ext/gd/gd.c php-5.1.0RC1/ext/gd/gd.c
2 --- php-5.1.0RC1.org/ext/gd/gd.c 2005-08-25 15:26:22.317049000 +0200
3 +++ php-5.1.0RC1/ext/gd/gd.c 2005-08-25 15:27:37.644598376 +0200
5 PHP_FE(imagecopyresampled, NULL)
8 -#ifdef HAVE_GD_BUNDLED
9 PHP_FE(imagerotate, NULL)
10 +#ifdef HAVE_GD_BUNDLED
11 PHP_FE(imageantialias, NULL)
15 #ifdef GD2_FMT_COMPRESSED
16 REGISTER_LONG_CONSTANT("IMG_GD2_COMPRESSED", GD2_FMT_COMPRESSED, CONST_CS | CONST_PERSISTENT);
19 REGISTER_LONG_CONSTANT("IMG_EFFECT_REPLACE", gdEffectReplace, CONST_CS | CONST_PERSISTENT);
20 REGISTER_LONG_CONSTANT("IMG_EFFECT_ALPHABLEND", gdEffectAlphaBlend, CONST_CS | CONST_PERSISTENT);
21 REGISTER_LONG_CONSTANT("IMG_EFFECT_NORMAL", gdEffectNormal, CONST_CS | CONST_PERSISTENT);
22 REGISTER_LONG_CONSTANT("IMG_EFFECT_OVERLAY", gdEffectOverlay, CONST_CS | CONST_PERSISTENT);
24 REGISTER_LONG_CONSTANT("GD_BUNDLED", 1, CONST_CS | CONST_PERSISTENT);
26 REGISTER_LONG_CONSTANT("IMG_FILTER_NEGATE", IMAGE_FILTER_NEGATE, CONST_CS | CONST_PERSISTENT);
31 -#ifdef HAVE_GD_BUNDLED
32 /* {{{ proto resource imagerotate(resource src_im, float angle, int bgdcolor)
33 Rotate an image using a custom angle */
34 PHP_FUNCTION(imagerotate)
37 ZEND_FETCH_RESOURCE(im_src, gdImagePtr, &SIM, -1, "Image", le_gd);
39 - im_dst = gdImageRotate(im_src, degrees, color, ignoretransparent);
40 + im_dst = gdImageRotate(im_src, degrees, color);
43 ZEND_REGISTER_RESOURCE(return_value, im_dst, le_gd);
50 #if HAVE_GD_IMAGESETTILE
51 /* {{{ proto bool imagesettile(resource image, resource tile)
52 diff -urbB php-5.1.0RC1.org/ext/gd/php_gd.h php-5.1.0RC1/ext/gd/php_gd.h
53 --- php-5.1.0RC1.org/ext/gd/php_gd.h 2005-08-25 15:26:22.366042000 +0200
54 +++ php-5.1.0RC1/ext/gd/php_gd.h 2005-08-25 15:27:37.645598224 +0200
56 PHP_FUNCTION(imagecopyresampled);
59 -#ifdef HAVE_GD_BUNDLED
60 PHP_FUNCTION(imagerotate);
61 +#ifdef HAVE_GD_BUNDLED
62 PHP_FUNCTION(imageantialias);