ID: 35115 Updated by: [EMAIL PROTECTED] Reported By: freetds228 at lewenberg dot com -Status: Assigned +Status: Feedback Bug Type: MSSQL related Operating System: RedHat Enterprise Linux 3 PHP Version: 5CVS, 4.4.1 Assigned To: fmk New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip I fixed the compile error, so please try again. Previous Comments: ------------------------------------------------------------------------ [2005-11-06 03:56:12] [EMAIL PROTECTED] Frank, please check this out! ------------------------------------------------------------------------ [2005-11-06 03:03:55] freetds228 at lewenberg dot com I tried to compile the snapshot but got this error: /root/tmp/php5-200511052330/ext/mssql/php_mssql.c:2312:2: #endif without #if make: *** [ext/mssql/php_mssql.lo] Error 1 I noticed I got this when I tried to compile the stable version of php5, also. ------------------------------------------------------------------------ [2005-11-05 20:01:57] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-11-05 19:19:49] freetds228 at lewenberg dot com Description: ------------ When running a simple SELECT select query against an MS SQL server, if the result set has a field with a non-NULL date, we are getting the following error (with --enable-debug flag on): [Sat Nov 5 11:26:07 2005] Script: '/www-s/testfreetds.php' --------------------------------------- /root/tmp/php-4.4.1/ext/mssql/php_mssql.c(191) : Block 0x093CA2E0 status: /root/tmp/php-4.4.1/Zend/zend_variables.c(44) : Actual location (location was relayed) Beginning: OK (allocated on /root/tmp/php-4.4.1/ext/mssql/php_mssql.c:904, 19 bytes) End: Overflown (magic=0x31383A34 instead of 0x2A8FCC84) At least 4 bytes overflown --------------------------------------- The query returns only a single row and field (a date). Note that Perl running the same query using the same freetds libraries has no errors. We have compiled 4.4.1 against freetds 0.63 using the --with-mssql option. Reproduce code: --------------- $db = mssql_connect('mssqlserver', 'user', 'secret') ; $rs = mssql_query('SELECT DateLastModified FROM Table WHERE rid = 1', $db) ; Expected result: ---------------- The date should be accessible in the result set. Actual result: -------------- [Sat Nov 5 11:26:07 2005] Script: '/www-s/testfreetds.php' --------------------------------------- /root/tmp/php-4.4.1/ext/mssql/php_mssql.c(191) : Block 0x093CA2E0 status: /root/tmp/php-4.4.1/Zend/zend_variables.c(44) : Actual location (location was relayed) Beginning: OK (allocated on /root/tmp/php-4.4.1/ext/mssql/php_mssql.c:904, 19 bytes) End: Overflown (magic=0x31383A34 instead of 0x2A8FCC84) At least 4 bytes overflown --------------------------------------- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35115&edit=1