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 d0c1176..875d8ec 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 4cadffa..74d760d 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 097bdba..20a31eb 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;