]> granicus.if.org Git - php/commitdiff
Trunk too - curl version check for the lack of a certinfo entry
authorRasmus Lerdorf <rasmus@php.net>
Mon, 23 Nov 2009 14:46:47 +0000 (14:46 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Mon, 23 Nov 2009 14:46:47 +0000 (14:46 +0000)
in the getinfo array.

ext/curl/tests/curl_basic_016.phpt

index b28a3022757e5cb29e2d0cece46a45249fe5c149..287c8cc337ed79b7c3f3e37d59fe39bde0778067 100644 (file)
@@ -3,7 +3,12 @@ Test curl_getinfo() function with basic functionality
 --CREDITS--
 Jean-Marc Fontaine <jmf@durcommefaire.net>
 --SKIPIF--
-<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>
+<?php 
+if (!extension_loaded("curl")) exit("skip curl extension not loaded");
+if ($curl_version['version_number'] > 0x071201) {
+    exit("skip: tests works only on older versions of curl");
+}
+?>
 --FILE--
 <?php
   $ch   = curl_init();