better PHP-5.3 compatibility
[m6w6/ext-http] / tests / etag001.phpt
index 77659d3becbaa581d3bdc923aae19a751b18fe37..4a866814a7a5697ede701700f9aa6a1f39745781 100644 (file)
@@ -1,7 +1,11 @@
 --TEST--
 etags with hash
 --SKIPIF--
-<?php include "skipif.inc"; _ext("hash"); ?>
+<?php 
+include "skipif.inc"; 
+_ext("hash"); 
+version_compare(PHP_VERSION, "5.4.0", ">=") or die("skip PHP>=5.4 required");
+?>
 --FILE--
 <?php
 $body = new http\Message\Body;