Edit report at https://bugs.php.net/bug.php?id=63258&edit=1

 ID:                 63258
 Updated by:         ssuffic...@php.net
 Reported by:        paul dot visco at roswellpark dot org
 Summary:            seg fault with PDO and dblib using DBSETOPT(H->link,
                     DBQUOTEDIDENT, 1);
 Status:             Closed
 Type:               Bug
 Package:            PDO related
 Operating System:   centos 5.8
 PHP Version:        5.4.7
 Assigned To:        ssufficool
 Block user comment: N
 Private report:     N

 New Comment:

Are you compiling against FreeTDS or Sybase libs? It looks like the segfault is 
in the DB LIB, not PHP. FreeTDS is passing a null pointer (or something 
invalid) 
to the libc strlen() function.

To further debug this issue, FreeTDS will need to be recompiled with debug 
symbols intact, php recompiled and the segfault back trace reproduced. This 
will 
give better insight to the code generating the error.


Previous Comments:
------------------------------------------------------------------------
[2013-01-18 13:03:08] f dot marquis at of2m dot fr

this patch seems to cause an error :
#63638 Cannot connect to SQL Server 2008 with PDO dblib

------------------------------------------------------------------------
[2012-10-12 02:39:42] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=0c0b5a3543f37dc3dfe7fa55629f2749c0b05294
Log: Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link, 
DBQUOTEDIDENT, 1))

------------------------------------------------------------------------
[2012-10-12 02:38:28] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=0c0b5a3543f37dc3dfe7fa55629f2749c0b05294
Log: Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link, 
DBQUOTEDIDENT, 1))

------------------------------------------------------------------------
[2012-10-11 16:21:34] ssuffic...@php.net

The patch looks legit. I'm not sure why I used 1 instead of null for the 
parameter value. I have not posted patches since the source was moved to git. 
Please merge this change for me if possible.

------------------------------------------------------------------------
[2012-10-11 10:23:57] larue...@php.net

ssufficool, do you have time to look into this?

seems you intentionally change the "NULL" to "1" in https://github.com/php/php-
src/commit/36b8c4cb

thanks

------------------------------------------------------------------------


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=63258


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63258&edit=1

Reply via email to