Bug #62379 [Com]: Test bug - ext/pdo_odbc/tests/long_columns.phpt
Edit report at https://bugs.php.net/bug.php?id=62379edit=1 ID: 62379 Comment by: mattfic...@php.net Reported by:mattfic...@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: The newest patch fixes this issue for me. I have tested it with PHP_5_4: Windows 7 x86 -all 3 MS Access Database drivers from Office 2010 -MySQL -MS SQL Server Express 2008, 2008 Enterprise, 2012 Enterprise RHEL 6.2 x64 -MySQL (MyODBC) -MS SQL Server Enterprise 2008 and 2012 - patch has link to where to download Microsoft's UnixODBC driver for MS SQL Server Previous Comments: [2012-07-12 22:02:28] mattfic...@php.net The following patch has been added/updated: Patch Name: 62379.patch.txt Revision: 1342130548 URL: https://bugs.php.net/patch-display.php?bug=62379patch=62379.patch.txtrevision=1342130548 [2012-07-11 23:01:17] mattfic...@php.net I was able to install MS SQL Server ODBC driver on Linux (RHEL 6.2) and load it using PDO ODBC driver and connect to SQL Server 2008 2012, but I got the same error, below (additional info in error messages because its a different PDO driver). Used these instructions to install MS SQL Server ODBC Driver: http://www.microsoft.com/en-us/download/details.aspx?id=28160 [Wed Jul 11 12:19:23 2012] Script: '/root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/tests/long_columns.php' --- /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c(685) : Block 0x7f4f9824d1a0 status: Beginning: OK (allocated on /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c:640, 257 bytes) Start: OK End: Overflown (magic=0x instead of 0x5AA4E353) 1 byte(s) overflown --- Failed on size 256: Expected 256 bytes, got 257 69696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969 5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a [Wed Jul 11 12:19:23 2012] Script: '/root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/tests/long_columns.php' --- /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c(685) : Block 0x7f4f921fc008 status: Beginning: OK (allocated on /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c:640, 258 bytes) Start: OK End: Overflown (magic=0x0069 instead of 0x5AA4E353) 2 byte(s) overflown --- Failed on size 257: Expected 257 bytes, got 259 6969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969 5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a [Wed Jul 11 12:19:23 2012] Script: '/root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/tests/long_columns.php'
Bug #62379 [Com]: Test bug - ext/pdo_odbc/tests/long_columns.phpt
Edit report at https://bugs.php.net/bug.php?id=62379edit=1 ID: 62379 Comment by: mattfic...@php.net Reported by:mattfic...@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 was able to install MS SQL Server ODBC driver on Linux (RHEL 6.2) and load it using PDO ODBC driver and connect to SQL Server 2008 2012, but I got the same error, below (additional info in error messages because its a different PDO driver). Used these instructions to install MS SQL Server ODBC Driver: http://www.microsoft.com/en-us/download/details.aspx?id=28160 [Wed Jul 11 12:19:23 2012] Script: '/root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/tests/long_columns.php' --- /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c(685) : Block 0x7f4f9824d1a0 status: Beginning: OK (allocated on /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c:640, 257 bytes) Start: OK End: Overflown (magic=0x instead of 0x5AA4E353) 1 byte(s) overflown --- Failed on size 256: Expected 256 bytes, got 257 69696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969 5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a [Wed Jul 11 12:19:23 2012] Script: '/root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/tests/long_columns.php' --- /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c(685) : Block 0x7f4f921fc008 status: Beginning: OK (allocated on /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c:640, 258 bytes) Start: OK End: Overflown (magic=0x0069 instead of 0x5AA4E353) 2 byte(s) overflown --- Failed on size 257: Expected 257 bytes, got 259 6969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969 5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a [Wed Jul 11 12:19:23 2012] Script: '/root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/tests/long_columns.php' --- /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c(685) : Block 0x7f4f921fbeb0 status: Beginning: OK (allocated on /root/Downloads/php-src-PHP-5.4-66e1ac2/ext/pdo_odbc/odbc_stmt.c:640, 259 bytes) Start: OK End: Overflown (magic=0x0069 instead of 0x5AA4E353) 3 byte(s) overflown --- Failed on size 258: Expected 258 bytes, got 261
Bug #62379 [Com]: Test bug - ext/pdo_odbc/tests/long_columns.phpt
Edit report at https://bugs.php.net/bug.php?id=62379edit=1 ID: 62379 Comment by: a...@php.net Reported by:mattfic...@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+ 5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a20a483d79239028a51d39241024002dcf81273a00f3c3a9a10fa040802da20f25c5a 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] mattfic...@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