diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2012-09-03 20:56:49 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-04 23:50:25 -0500 |
commit | c36043820b20dbc601aeed91b4ebee0c3fb18a0b (patch) | |
tree | 0d96b0318f5eb5ff5a5f3462066890cfbcd58e15 /development/ming/patch-ming.c.diff | |
parent | 61e6de614c8d27fcb91177d381e0e02b81f1f93b (diff) | |
download | slackbuilds-c36043820b20dbc601aeed91b4ebee0c3fb18a0b.tar.gz |
development/ming: Fix building perl extension.
Also partially fixed building the php extension. It builds fine
with a "normal" php 5.4 now, but still fails with a zts enabled one
like shipped in Slackware.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'development/ming/patch-ming.c.diff')
-rw-r--r-- | development/ming/patch-ming.c.diff | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/development/ming/patch-ming.c.diff b/development/ming/patch-ming.c.diff new file mode 100644 index 0000000000..9465b56281 --- /dev/null +++ b/development/ming/patch-ming.c.diff @@ -0,0 +1,22 @@ +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662620 +--- ming.c.orig 2011-10-26 01:33:18.000000000 -0500 ++++ ming.c 2012-05-14 17:06:09.000000000 -0500 +@@ -87,10 +87,17 @@ + static SWFMatrix getMatrix(zval *id TSRMLS_DC); + #endif + ++#if PHP_API_VERSION < 20100412 + #define PHP_MING_FILE_CHK(file) \ + if ((PG(safe_mode) && !php_checkuid((file), NULL, CHECKUID_CHECK_FILE_AND_DIR)) || php_check_open_basedir((file) TSRMLS_CC)) { \ + RETURN_FALSE; \ +- } \ ++ } ++#else ++#define PHP_MING_FILE_CHK(file) \ ++ if (php_check_open_basedir((file) TSRMLS_CC)) { \ ++ RETURN_FALSE; \ ++ } ++#endif + + /* {{{ proto void ming_setcubicthreshold (int threshold) + Set cubic threshold (?) */ |