Fix VC11 build
authorMichael Wallner <mike@php.net>
Fri, 10 Jul 2015 07:50:12 +0000 (09:50 +0200)
committerMichael Wallner <mike@php.net>
Fri, 10 Jul 2015 07:50:12 +0000 (09:50 +0200)
package.xml
php_http.h
php_http_env_response.c

index d0c1176f019c0b24ad02c89a4f6605f7a34f57e1..875d8ecbff7ce8c372ccb357813d75fcff0bd3e7 100644 (file)
@@ -37,18 +37,16 @@ http://dev.iworks.at/ext-http/lcov/ext/http/
  </lead>
  <date>2015-07-09</date>
  <version>
-  <release>2.5.0</release>
+  <release>2.5.1dev</release>
   <api>2.5.0</api>
  </version>
  <stability>
-  <release>stable</release>
+  <release>beta</release>
   <api>stable</api>
  </stability>
  <license>BSD, revised</license>
  <notes><![CDATA[
-+ Added RFC5988 (Web Linking) support to http\Params
-+ Added http\Url::SANITIZE_PATH to default flags of http\Url::mod()
-* Fixed overly aggressive response caching to only consider 2xx cachable
+* Fixed VC11 build (Jan Erhardt)
 ]]></notes>
  <contents>
   <dir name="/">
index 4cadffa2f122bea9e5f886ae2bc32770a5444552..74d760d510e191c7ce92bce70a9c931d0489cb7f 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef PHP_EXT_HTTP_H
 #define PHP_EXT_HTTP_H
 
-#define PHP_PECL_HTTP_VERSION "2.5.0"
+#define PHP_PECL_HTTP_VERSION "2.5.1dev"
 
 extern zend_module_entry http_module_entry;
 #define phpext_http_ptr &http_module_entry
index 097bdba7217845025377f3cbad8b1186563bb19e..20a31eb90fea41b0ad73aa22c9e8011867dc1c95 100644 (file)
@@ -228,8 +228,8 @@ php_http_cache_status_t php_http_env_is_response_cached_by_last_modified(zval *o
 
 static zend_bool php_http_env_response_is_cacheable(php_http_env_response_t *r, php_http_message_t *request)
 {
-       TSRMLS_FETCH_FROM_CTX(r->ts);
        long status = r->ops->get_status(r);
+       TSRMLS_FETCH_FROM_CTX(r->ts);
 
        if (status && status / 100 != 2) {
                return 0;