]> git.pld-linux.org Git - packages/php.git/blob - php-gd_imagerotate_enable.patch
- updated to 5.2.0
[packages/php.git] / php-gd_imagerotate_enable.patch
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
4 @@ -209,8 +209,8 @@
5         PHP_FE(imagecopyresampled,                                              NULL)
6  #endif
7  
8 -#ifdef HAVE_GD_BUNDLED
9         PHP_FE(imagerotate,                                                     NULL)
10 +#ifdef HAVE_GD_BUNDLED
11         PHP_FE(imageantialias,                                                  NULL)
12  #endif
13  
14 @@ -429,11 +429,11 @@
15  #ifdef GD2_FMT_COMPRESSED
16         REGISTER_LONG_CONSTANT("IMG_GD2_COMPRESSED", GD2_FMT_COMPRESSED, CONST_CS | CONST_PERSISTENT);
17  #endif
18 -#if HAVE_GD_BUNDLED
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);
23 +#if HAVE_GD_BUNDLED
24         REGISTER_LONG_CONSTANT("GD_BUNDLED", 1, CONST_CS | CONST_PERSISTENT);
25         /* Section Filters */
26         REGISTER_LONG_CONSTANT("IMG_FILTER_NEGATE", IMAGE_FILTER_NEGATE, CONST_CS | CONST_PERSISTENT);
27 @@ -1204,7 +1204,6 @@
28  /* }}} */
29  #endif
30  
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)
35 @@ -1221,7 +1220,7 @@
36  
37         ZEND_FETCH_RESOURCE(im_src, gdImagePtr, &SIM, -1, "Image", le_gd);
38  
39 -       im_dst = gdImageRotate(im_src, degrees, color, ignoretransparent);
40 +       im_dst = gdImageRotate(im_src, degrees, color);
41  
42         if (im_dst != NULL) {
43                 ZEND_REGISTER_RESOURCE(return_value, im_dst, le_gd);
44 @@ -1230,7 +1229,6 @@
45         }
46  }
47  /* }}} */
48 -#endif
49  
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
55 @@ -103,8 +103,8 @@
56  PHP_FUNCTION(imagecopyresampled);
57  #endif
58  
59 -#ifdef HAVE_GD_BUNDLED
60  PHP_FUNCTION(imagerotate);
61 +#ifdef HAVE_GD_BUNDLED
62  PHP_FUNCTION(imageantialias);
63  #endif
64  
This page took 0.025007 seconds and 3 git commands to generate.