summaryrefslogtreecommitdiffstats
path: root/pecl_http-git.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-08-19 10:32:21 +0200
committerRemi Collet <fedora@famillecollet.com>2014-08-19 10:32:21 +0200
commitabc3f351b21fe7cbc33075f23812cd241fe08067 (patch)
treef58bc0e50eb470d95130eb711f427fc426f301dc /pecl_http-git.patch
parent62ed6368b36c4963706ec5a3eb43e3e7a98730e2 (diff)
php-pecl-http: 2.1.0RC3 (remi-test)
Diffstat (limited to 'pecl_http-git.patch')
-rw-r--r--pecl_http-git.patch67
1 files changed, 0 insertions, 67 deletions
diff --git a/pecl_http-git.patch b/pecl_http-git.patch
deleted file mode 100644
index ad959d0..0000000
--- a/pecl_http-git.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From 371a7daee8ef02195769ebf846e0f5ca93093672 Mon Sep 17 00:00:00 2001
-From: Michael Wallner <mike@php.net>
-Date: Mon, 11 Aug 2014 17:13:05 +0200
-Subject: [PATCH] fix PHP-5.3 compatibility
-
----
- php_http_env_response.c | 4 ++++
- php_http_message.c | 13 +++++++++++++
- tests/params015.phpt | 2 +-
- 3 files changed, 18 insertions(+), 1 deletion(-)
-
-diff --git a/php_http_env_response.c b/php_http_env_response.c
-index 4d6ef03..c155dde 100644
---- a/php_http_env_response.c
-+++ b/php_http_env_response.c
-@@ -1096,7 +1096,11 @@ static PHP_METHOD(HttpEnvResponse, __invoke)
-
- php_http_message_object_init_body_object(obj);
- php_http_message_body_append(obj->message->body, ob_str, ob_len);
-+#if PHP_VERSION_ID >= 50400
- RETURN_TRUE;
-+#else
-+ RETURN_EMPTY_STRING();
-+#endif
- }
- }
-
-diff --git a/php_http_message.c b/php_http_message.c
-index cc04edc..88def26 100644
---- a/php_http_message.c
-+++ b/php_http_message.c
-@@ -98,6 +98,19 @@ php_http_message_t *php_http_message_init_env(php_http_message_t *message, php_h
- zval_dtor(&tval);
- }
- }
-+#else
-+ if (OG(ob_nesting_level)) {
-+ if (php_get_output_start_filename(TSRMLS_C)) {
-+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not fetch response body, output has already been sent at %s:%d", php_get_output_start_filename(TSRMLS_C), php_get_output_start_lineno(TSRMLS_C));
-+ goto error;
-+ } else if (SUCCESS != php_ob_get_buffer(&tval TSRMLS_CC)) {
-+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not fetch response body");
-+ goto error;
-+ } else {
-+ php_http_message_body_append(message->body, Z_STRVAL(tval), Z_STRLEN(tval));
-+ zval_dtor(&tval);
-+ }
-+ }
- #endif
- break;
-
-diff --git a/tests/params015.phpt b/tests/params015.phpt
-index ad3948c..7501167 100644
---- a/tests/params015.phpt
-+++ b/tests/params015.phpt
-@@ -7,7 +7,7 @@ include "skipif.inc";
- --FILE--
- <?php
- echo "Test\n";
--$p = new http\Params(["attachment"=>["filename"=>"foo.bar"]]);
-+$p = new http\Params(array("attachment"=>array("filename"=>"foo.bar")));
- var_dump($p->params);
- var_dump((string)$p);
- ?>
---
-1.9.2
-