Patch long_columns.phpt.patch for *Compile Issues Bug #62379
Patch version 2012-06-21 06:42 UTC
Return to Bug #62379 |
Download this patch
Patch Revisions:
Developer: mattficken
--- a/ext/pdo_odbc/tests/long_columns.phpt Wed Jun 20 16:19:13 2012
+++ b/ext/pdo_odbc/tests/long_columns.phpt Wed Jun 20 23:35:30 2012
@@ -3,6 +3,10 @@
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded('pdo_odbc')) print 'skip not loaded';
+// this will load common.phpt, then try to use MS-Access or other ODBC
+include 'pdo_test.inc';
+// no DSN defined, PDOTest::test_factory() will fail for sure
+if (getenv('PDOTEST_DSN')===false) print 'skip';
?>
--FILE--
<?php
--- a/ext/pdo_odbc/tests/common.phpt Wed Jun 20 16:19:13 2012
+++ b/ext/pdo_odbc/tests/common.phpt Wed Jun 20 23:32:29 2012
@@ -7,7 +7,9 @@
# magic auto-configuration
$config = array(
- 'TESTS' => 'ext/pdo/tests'
+ 'TESTS' => 'ext/pdo/tests',
+ // ext/pdo/tests/pdo_test.inc fails if $config['ENV'] is undefined
+ 'ENV' => array()
);
|