diff options
author | miwi <miwi@FreeBSD.org> | 2012-05-28 12:47:05 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2012-05-28 12:47:05 +0800 |
commit | fda1675297d1267873b554bf2e8a2f87718e86f7 (patch) | |
tree | 0577822448d66e63b0c37836fe69c3c28992cdfb | |
parent | ef708e24407c8e1618cb6ab58b54144135ac6b6e (diff) | |
download | freebsd-ports-gnome-fda1675297d1267873b554bf2e8a2f87718e86f7.tar.gz freebsd-ports-gnome-fda1675297d1267873b554bf2e8a2f87718e86f7.tar.zst freebsd-ports-gnome-fda1675297d1267873b554bf2e8a2f87718e86f7.zip |
- Fix build with php54
PR: 168382
Submitted by: Nicolas Raspail <nicolas.raspail@gmail.com>
-rw-r--r-- | devel/pecl-uploadprogress/files/patch-uploadprogress.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/pecl-uploadprogress/files/patch-uploadprogress.c b/devel/pecl-uploadprogress/files/patch-uploadprogress.c new file mode 100644 index 000000000000..60074992aaaa --- /dev/null +++ b/devel/pecl-uploadprogress/files/patch-uploadprogress.c @@ -0,0 +1,16 @@ +???--- uploadprogress.c.orig 2012-05-27 18:32:23.891923716 +0200 ++++ uploadprogress.c 2012-05-27 18:33:33.601926257 +0200 +@@ -457,11 +457,12 @@ + /* uses mmap if possible */ + if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { + ++#if PHP_API_VERSION < 20100412 + if (PG(magic_quotes_runtime)) { + contents = php_addslashes(contents, len, &newlen, 1 TSRMLS_CC); + len = newlen; + } +- ++#endif + RETVAL_STRINGL(contents, len, 0); + } else if (len == 0) { + RETVAL_EMPTY_STRING();
\ No newline at end of file |