sixd Fri, 16 Sep 2011 19:56:32 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=316864
Log: Test portability fix Changed paths: U php/php-src/branches/PHP_5_3/ext/oci8/tests/pecl_bug16035.phpt U php/php-src/branches/PHP_5_4/ext/oci8/tests/pecl_bug16035.phpt U php/php-src/trunk/ext/oci8/tests/pecl_bug16035.phpt Modified: php/php-src/branches/PHP_5_3/ext/oci8/tests/pecl_bug16035.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/oci8/tests/pecl_bug16035.phpt 2011-09-16 19:21:26 UTC (rev 316863) +++ php/php-src/branches/PHP_5_3/ext/oci8/tests/pecl_bug16035.phpt 2011-09-16 19:56:32 UTC (rev 316864) @@ -10,6 +10,9 @@ if ($ov !== 1) { die ("skip Test only valid when OCI8 is built with an ORACLE_HOME"); } +if (preg_match('/Unknown/', oci_client_version()) == 1) { + die("skip expected output only valid with Oracle clients > 9gR2"); +} ?> --ENV-- ORACLE_HOME="" Modified: php/php-src/branches/PHP_5_4/ext/oci8/tests/pecl_bug16035.phpt =================================================================== --- php/php-src/branches/PHP_5_4/ext/oci8/tests/pecl_bug16035.phpt 2011-09-16 19:21:26 UTC (rev 316863) +++ php/php-src/branches/PHP_5_4/ext/oci8/tests/pecl_bug16035.phpt 2011-09-16 19:56:32 UTC (rev 316864) @@ -10,6 +10,9 @@ if ($ov !== 1) { die ("skip Test only valid when OCI8 is built with an ORACLE_HOME"); } +if (preg_match('/Unknown/', oci_client_version()) == 1) { + die("skip expected output only valid with Oracle clients > 9gR2"); +} ?> --ENV-- ORACLE_HOME="" Modified: php/php-src/trunk/ext/oci8/tests/pecl_bug16035.phpt =================================================================== --- php/php-src/trunk/ext/oci8/tests/pecl_bug16035.phpt 2011-09-16 19:21:26 UTC (rev 316863) +++ php/php-src/trunk/ext/oci8/tests/pecl_bug16035.phpt 2011-09-16 19:56:32 UTC (rev 316864) @@ -10,6 +10,9 @@ if ($ov !== 1) { die ("skip Test only valid when OCI8 is built with an ORACLE_HOME"); } +if (preg_match('/Unknown/', oci_client_version()) == 1) { + die("skip expected output only valid with Oracle clients > 9gR2"); +} ?> --ENV-- ORACLE_HOME=""
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php