]> git.pld-linux.org Git - packages/php.git/commitdiff
- restore
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 19 Feb 2010 23:57:16 +0000 (23:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-curl-limit-speed.patch -> 1.3
    php-fcgi-error_log-no-newlines.patch -> 1.3
    php-libtool.patch -> 1.8

php-curl-limit-speed.patch [new file with mode: 0644]
php-fcgi-error_log-no-newlines.patch [new file with mode: 0644]
php-libtool.patch [new file with mode: 0644]

diff --git a/php-curl-limit-speed.patch b/php-curl-limit-speed.patch
new file mode 100644 (file)
index 0000000..8348dd4
--- /dev/null
@@ -0,0 +1,30 @@
+--- php-5.2.5.orig/ext/curl/interface.c        2008-03-26 17:05:19.000000000 +0100
++++ php-5.2.5/ext/curl/interface.c     2008-03-26 17:09:05.000000000 +0100
+@@ -462,6 +462,14 @@
+       REGISTER_CURL_CONSTANT(CURLOPT_TCP_NODELAY);
+ #endif
+       REGISTER_CURL_CONSTANT(CURLOPT_HTTP200ALIASES);
++
++/* Added constants to support limiting the transfer speed in PHP */
++/* Fixed by Tijnema (admin@tijnema.info) */
++#if LIBCURL_VERSION_NUM > 0x070fff /* CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_SEND_SPEED_LARGE are available since curl 7.16.0 */
++      REGISTER_CURL_CONSTANT(CURLOPT_MAX_SEND_SPEED_LARGE);
++      REGISTER_CURL_CONSTANT(CURLOPT_MAX_RECV_SPEED_LARGE);
++#endif
++
+       REGISTER_CURL_CONSTANT(CURL_TIMECOND_IFMODSINCE);
+       REGISTER_CURL_CONSTANT(CURL_TIMECOND_IFUNMODSINCE);
+       REGISTER_CURL_CONSTANT(CURL_TIMECOND_LASTMOD);
+@@ -1288,6 +1296,12 @@
+ #if LIBCURL_VERSION_NUM > 0x070b01 /* CURLOPT_TCP_NODELAY is available since curl 7.11.2 */
+               case CURLOPT_TCP_NODELAY:
+ #endif
++/* Added case options to support limiting the transfer speed in PHP */
++/* Fixed by Tijnema (admin@tijnema.info) */
++#if LIBCURL_VERSION_NUM > 0x070fff /* CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_SEND_SPEED_LARGE are available since curl 7.16.0 */
++              case CURLOPT_MAX_SEND_SPEED_LARGE:
++              case CURLOPT_MAX_RECV_SPEED_LARGE:
++#endif
+                       convert_to_long_ex(zvalue);
+                       error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue));
+                       break;
diff --git a/php-fcgi-error_log-no-newlines.patch b/php-fcgi-error_log-no-newlines.patch
new file mode 100644 (file)
index 0000000..e35648e
--- /dev/null
@@ -0,0 +1,16 @@
+--- ./sapi/cgi/cgi_main.c~     2007-08-09 02:51:57.000000000 +0300
++++ ./sapi/cgi/cgi_main.c      2007-09-05 20:54:19.390089070 +0300
+@@ -558,12 +558,7 @@
+               request = (fcgi_request*) SG(server_context);
+               if (request) {                  
+                       int len = strlen(message);
+-                      char *buf = malloc(len+2);
+-
+-                      memcpy(buf, message, len);
+-                      memcpy(buf + len, "\n", sizeof("\n"));
+-                      fcgi_write(request, FCGI_STDERR, buf, len+1);
+-                      free(buf);
++                      fcgi_write(request, FCGI_STDERR, message, len);
+               } else {
+                       fprintf(stderr, "%s\n", message);
+               }
diff --git a/php-libtool.patch b/php-libtool.patch
new file mode 100644 (file)
index 0000000..380cd0a
--- /dev/null
@@ -0,0 +1,20 @@
+--- php/scripts/phpize.in.org  2008-06-16 10:03:28.882568639 +0200
++++ php/scripts/phpize.in      2008-06-16 10:04:37.424018256 +0200
+@@ -8,7 +8,7 @@
+ builddir="`pwd`"
+ SED="@SED@"
+-FILES_BUILD="mkdep.awk scan_makefile_in.awk shtool libtool.m4"
++FILES_BUILD="mkdep.awk scan_makefile_in.awk shtool libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
+ FILES="acinclude.m4 Makefile.global config.sub config.guess ltmain.sh run-tests*.php"
+ CLEAN_FILES="$FILES *.o *.lo *.la .deps .libs/ build/ include/ modules/ install-sh \
+       mkinstalldirs missing config.nice config.sub config.guess configure configure.in \
+@@ -127,7 +127,7 @@
+  
+   (cd "$phpdir" && cp $FILES_BUILD "$builddir"/build)
+   (cd "$phpdir" && cp $FILES "$builddir")
+-  (cd "$builddir" && cat acinclude.m4 ./build/libtool.m4 > aclocal.m4)
++  (cd "$builddir" && cat acinclude.m4 ./build/{libtool,lt~obsolete,ltoptions,ltsugar,ltversion}.m4 > aclocal.m4)
+ }
+ phpize_replace_prefix()
This page took 1.222786 seconds and 4 git commands to generate.