]> git.pld-linux.org Git - packages/php.git/blame - php-gd_imagerotate_enable.patch
- dropped db3 bcond and allow-db31 patch
[packages/php.git] / php-gd_imagerotate_enable.patch
CommitLineData
62277197
AM
1diff -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
8afa12fe 4@@ -209,8 +209,8 @@
7d798202
PG
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
62277197 14@@ -429,11 +429,11 @@
7d798202
PG
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);
8afa12fe
PG
25 /* Section Filters */
26 REGISTER_LONG_CONSTANT("IMG_FILTER_NEGATE", IMAGE_FILTER_NEGATE, CONST_CS | CONST_PERSISTENT);
62277197 27@@ -1204,7 +1204,6 @@
7d798202
PG
28 /* }}} */
29 #endif
30
31-#ifdef HAVE_GD_BUNDLED
8afa12fe 32 /* {{{ proto resource imagerotate(resource src_im, float angle, int bgdcolor)
7d798202
PG
33 Rotate an image using a custom angle */
34 PHP_FUNCTION(imagerotate)
62277197
AM
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 @@
7d798202
PG
45 }
46 }
47 /* }}} */
48-#endif
49
50 #if HAVE_GD_IMAGESETTILE
8afa12fe 51 /* {{{ proto bool imagesettile(resource image, resource tile)
62277197
AM
52diff -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
7d798202
PG
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.039831 seconds and 4 git commands to generate.