svn: /php/php-src/branches/PHP_5_3/ext/curl/tests/ curl_basic_016.phpt

From: Date: Mon, 23 Nov 2009 14:43:52 +0000
Subject: svn: /php/php-src/branches/PHP_5_3/ext/curl/tests/ curl_basic_016.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-60977@lists.php.net to get a copy of this message
rasmus Mon, 23 Nov 2009 14:43:52 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=291209 Log: Pierre added certinfo to the curl info array, but that is only available in newer versions of curl and this test doesn't test for it. Changed paths: U php/php-src/branches/PHP_5_3/ext/curl/tests/curl_basic_016.phpt Modified: php/php-src/branches/PHP_5_3/ext/curl/tests/curl_basic_016.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/curl/tests/curl_basic_016.phpt 2009-11-23 14:43:09 UTC (rev 291208) +++ php/php-src/branches/PHP_5_3/ext/curl/tests/curl_basic_016.phpt 2009-11-23 14:43:52 UTC (rev 291209) @@ -3,7 +3,13 @@ --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"); +$curl_version = curl_version(); +if ($curl_version['version_number'] > 0x071201) { + exit("skip: tests works only on older versions of curl"); +} +?> --FILE-- <?php $ch = curl_init();

« previous php.cvs (#60977) next »