summaryrefslogtreecommitdiffstats
path: root/gmagick-php56.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-03-03 14:59:09 +0100
committerRemi Collet <fedora@famillecollet.com>2014-03-03 14:59:09 +0100
commit7b76caee7fd36f7e4e00fde2490c7e91251afb31 (patch)
tree92ac57975bf5b87881df9c66f7e872eb57070e24 /gmagick-php56.patch
parent45370d84350beb7bc5046e8509673632c10c4b1f (diff)
php-pecl-gmagick: add fix for php 5.6
Diffstat (limited to 'gmagick-php56.patch')
-rw-r--r--gmagick-php56.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/gmagick-php56.patch b/gmagick-php56.patch
new file mode 100644
index 0000000..68306f3
--- /dev/null
+++ b/gmagick-php56.patch
@@ -0,0 +1,14 @@
+--- pecl/gmagick/trunk/gmagick.c 2014/02/13 16:24:02 332848
++++ pecl/gmagick/trunk/gmagick.c 2014/03/03 13:44:25 332912
+@@ -1232,7 +1232,11 @@
+ return FAILURE;
+
+ InitializeMagick(cwd);
++#if PHP_VERSION_ID < 50600
+ free(cwd);
++#else
++ efree(cwd);
++#endif
+
+ /* init constants */
+ php_gmagick_initialize_constants();