-libphpcups_la_LDFLAGS = -no-undefined
+libphpcups_la_CFLAGS = $(CUPS_CFLAGS) $(PHP_CFLAGS)
+libphpcups_la_LDFLAGS = -module -avoid-version -shared -no-undefined
- endif # WITH_PHP
+
--- cups-filters-1.0.41/scripting/php/phpcups.c.orig 2012-06-22 18:10:47.000000000 +0200
+++ cups-filters-1.0.41/scripting/php/phpcups.c 2013-12-01 10:50:16.171425151 +0100
# include <fcntl.h>
# include <sys/stat.h>
# if defined(WIN32) || defined(__EMX__)
+diff -urN cups-filters-1.0.53.orig/scripting/php/phpcups.c cups-filters-1.0.53/scripting/php/phpcups.c
+--- cups-filters-1.0.53.orig/scripting/php/phpcups.c 2014-05-01 18:48:49.622212848 +0200
++++ cups-filters-1.0.53/scripting/php/phpcups.c 2014-05-01 18:49:21.228878551 +0200
+@@ -44,7 +44,7 @@
+ * PHP function list...
+ */
+
+-function_entry phpcups_functions[] =
++zend_function_entry phpcups_functions[] =
+ {
+ PHP_FE(cups_cancel_job, NULL)
+ PHP_FE(cups_get_dests, NULL)