Bug #54169 [Com]: Garbage Pointers returned for (n)varchar(max) columns (SQL Server)
[email protected] ("robshelby at icloud dot com")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=54169&edit=1 ID: 54169 Comment by: robshelby at icloud dot com Reported by: [email protected] Summary: Garbage Pointers returned for (n)varchar(max) columns (SQL Server) Status: Assigned Type: Bug Package: PDO ODBC Operating System: Any PHP Version: Irrelevant Assigned To: auroraeosrose Block user comment: N Private report: N New Comment: It would be great if this was merged into PHP 5.6 as well. Previous Comments: ------------------------------------------------------------------------ [2015-12-17 20:15:33] deankearney at gmail dot com This bug still exists in php7. The fix works. Can we get this merged in? ------------------------------------------------------------------------ [2015-06-05 17:56:20] [email protected] Related To: Bug #44278 ------------------------------------------------------------------------ [2015-05-27 00:05:07] jlongo at kastle dot com @trapper - it isn't necessarily a "problem" in ODBC... it is a change in behavior for Microsoft's ODBC Driver 11 implementation. As of ODBC Driver 11, they are returning the length as 0 for max fields. They used to return a very large number for the column size, such as 2147483647 when running on a 32 bit platform, when using varchar(max) fields in prior versions of their driver. As an effect, the pure odbc extension will also need this kind of update to work with Microsoft's ODBC Driver 11 and max fields. ------------------------------------------------------------------------ [2015-05-26 23:53:07] jlongo at kastle dot com Hey guys... this bug has been sitting for far too long IMO. This needs to be identified as a security issue. The garbage pointers that I get back when testing this flaw more times than not will contain the contents of the script source that I am running. I have verified that the patch that was submitted works, so really it should just be a matter of folks merging it into the supported PHP versions for the next patch release. ------------------------------------------------------------------------ [2015-02-05 18:38:52] trapper at coremr dot com This bug is still in the latest version of PHP at this moment (5.6). It affects all the versions of the SQL Server Native Client ODBC drivers and makes them unfeasible to use because of it. As its a problem inside ODBC, it is currently affecting both raw odbc_* functions as well as any PDO connections. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=54169 -- Edit this bug report at https://bugs.php.net/bug.php?id=54169&edit=1