Bug #62379 [Com]: Test bug - ext/pdo_odbc/tests/long_columns.phpt
Edit report at https://bugs.php.net/bug.php?id=62379&edit=1
ID: 62379
Comment by: ab@php.net
Reported by: mattficken@php.net
Summary: Test bug - ext/pdo_odbc/tests/long_columns.phpt
Status: Open
Type: Bug
Package: *Compile Issues
Operating System: Windows
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
I think the patch is just partly correct, as PDOTEST_DSN isn't involved in that test. The DSN
stuff is handled in the ext\pdo_odbc\tests\common.inc where it tries to create a MS access db under
win. Adding the ENV key to the config only helps to get rid of that undefined index warning.
Actually the test was going through for me and failed again :) with the diff:
001+ Failed on size 256:
001- Finished
002+ Expected 256 bytes, got 257
003+
69696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969
004+
5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a
005+ Failed on size 257:
006+ Expected 257 bytes, got 259
007+
6969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969
008+
5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a
009+ Failed on size 258:
010+ Expected 258 bytes, got 261
011+
696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969
012+
5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a20a483d792390200008a51d3924102000040020000dcf81273a00f00003c3a9a10fa040000000000000000000008020000da20f25c5a
Looks like 'ext/pdo/tests/pdo_test.inc' is used here only to include the PDOTest class.
Previous Comments:
------------------------------------------------------------------------
[2012-06-21 06:42:51] mattficken@php.net
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 this bug report at https://bugs.php.net/bug.php?id=62379&edit=1
Thread (6 messages)