From:             mattficken
Operating system: Windows
PHP version:      5.4.4
Package:          *Compile Issues
Bug Type:         Bug
Bug description:Test bug - ext/pdo_odbc/tests/long_columns.phpt

Description:
------------
There is a logic error in common.phpt where it can return $config without
defining 
$CONFIG['ENV']['PDOTEST_DSN'] in which case pdotest.inc fails.

The patch fixes this and adds a check to long_columns.phpt to skip the test
if 
PDOTEST_DSN is not defined.

Actual result:
--------------
001+ Notice: Undefined index: ENV in
C:\Users\matt\Downloads\php-test-pack-5.4-
nts-windows-vc9-x86-r041dd77\ext\pdo\tests\pdo_test.inc on line 15
001- Finished
002+ 
003+ Warning: Invalid argument supplied for foreach() in 
C:\Users\matt\Downloads\php-test-pack-5.4-nts-windows-vc9-x86-
r041dd77\ext\pdo\tests\pdo_test.inc on line 15
004+ 
005+ Notice: Undefined index: ENV in
C:\Users\matt\Downloads\php-test-pack-5.4-
nts-windows-vc9-x86-r041dd77\ext\pdo\tests\pdo_test.inc on line 72
006+ 
007+ Warning: Invalid argument supplied for foreach() in 
C:\Users\matt\Downloads\php-test-pack-5.4-nts-windows-vc9-x86-
r041dd77\ext\pdo\tests\pdo_test.inc on line 72
008+ 
009+ Fatal error: Uncaught exception 'PDOException' with message 'invalid
data 
source name' in
C:\Users\matt\Downloads\php-test-pack-5.4-nts-windows-vc9-x86-
r041dd77\ext\pdo\tests\pdo_test.inc:35
010+ Stack trace:
011+ #0 C:\Users\matt\Downloads\php-test-pack-5.4-nts-windows-vc9-x86-
r041dd77\ext\pdo\tests\pdo_test.inc(35): PDO->__construct('', NULL, NULL,
NULL)
012+ #1 C:\Users\matt\Downloads\php-test-pack-5.4-nts-windows-vc9-x86-
r041dd77\ext\pdo\tests\pdo_test.inc(75): PDOTest::factory()
013+ #2 C:\Users\matt\Downloads\php-test-pack-5.4-nts-windows-vc9-x86-
r041dd77\ext\pdo_odbc\tests\long_columns.php(3): 
PDOTest::test_factory('ext/pdo_odbc/te...')
014+ #3 {main}
015+   thrown in
C:\Users\matt\Downloads\php-test-pack-5.4-nts-windows-vc9-x86-
r041dd77\ext\pdo\tests\pdo_test.inc on line 35

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62379&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62379&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62379&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62379&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62379&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62379&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62379&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62379&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62379&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62379&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62379&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62379&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62379&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62379&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62379&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62379&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62379&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62379&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62379&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62379&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62379&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62379&r=mysqlcfg

Reply via email to