php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62379
Patch 62379.patch.txt revision 2012-07-12 22:02 UTC by mattficken@php.net
Patch long_columns.phpt.patch revision 2012-06-21 06:42 UTC by mattficken

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()
 ); 
 	
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC