From: Michael Wallner Date: Mon, 31 Dec 2012 09:59:37 +0000 (+0000) Subject: prepare beta4 X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~53 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b7db0fc5a73cc8c7d3164e5d500cddd17bc7cb9e;p=m6w6%2Fext-http prepare beta4 --- diff --git a/package.xml b/package.xml index 7949451..ea0d44b 100644 --- a/package.xml +++ b/package.xml @@ -26,9 +26,9 @@ Extended HTTP support. Again. Keep in mind that it's got the major version 2, be mike@php.net yes - 2012-12-13 + 2012-12-30 - 2.0.0beta3 + 2.0.0beta4 2.0.0 @@ -149,7 +149,7 @@ Extended HTTP support. Again. Keep in mind that it's got the major version 2, be - + @@ -165,13 +165,14 @@ Extended HTTP support. Again. Keep in mind that it's got the major version 2, be - + + @@ -194,7 +195,7 @@ Extended HTTP support. Again. Keep in mind that it's got the major version 2, be - + diff --git a/php_http.h b/php_http.h index 2ad3168..501a60f 100644 --- a/php_http.h +++ b/php_http.h @@ -13,7 +13,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_HTTP_EXT_VERSION "2.0.0beta3" +#define PHP_HTTP_EXT_VERSION "2.0.0beta4" zend_module_entry http_module_entry; #define phpext_http_ptr &http_module_entry diff --git a/tests/envrequestjson001.phpt b/tests/envrequestjson001.phpt new file mode 100644 index 0000000..3dfd9a8 --- /dev/null +++ b/tests/envrequestjson001.phpt @@ -0,0 +1,32 @@ +--TEST-- +env request json +--SKIPIF-- + +--POST_RAW-- +Content-Type: application/json + +{"foo": "bar", "a": [1,2,3]} +--FILE-- + +Done +--EXPECT-- +Test +Array +( + [foo] => bar + [a] => Array + ( + [0] => 1 + [1] => 2 + [2] => 3 + ) + +) +Done + diff --git a/tests/envrequestjson002.phpt b/tests/envrequestjson002.phpt new file mode 100644 index 0000000..4c404c0 --- /dev/null +++ b/tests/envrequestjson002.phpt @@ -0,0 +1,32 @@ +--TEST-- +env request json +--SKIPIF-- + +--PUT-- +Content-Type: application/json + +{"foo": "bar", "a": [1,2,3]} +--FILE-- + +Done +--EXPECT-- +Test +Array +( + [foo] => bar + [a] => Array + ( + [0] => 1 + [1] => 2 + [2] => 3 + ) + +) +Done +