|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2012-10-11 10:13 UTC] laruence@php.net
  [2012-10-11 10:13 UTC] laruence@php.net
 
-Status: Open
+Status: Duplicate
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 13:00:01 2025 UTC | 
Description: ------------ I got a segmentation fault when try to connect to connect on Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (X64). I tested with php53, and work very well. I compiled freetds 0.91 with this configure: --enable-msdblib --with-tdsver=8.0 --with-unixodbc=${prefix} This is my freetds.conf with permission 0644 [global] tds version = 7.2 text size = 64512 On the same machine, I have the php5.4 and php5.3 installed. With php5.3 worked very well Test script: --------------- $hostname = "IP"; $dbname = "LOGIN"; $username = "USER"; $pw = "PASS"; $port = 1433; $db = new PDO("dblib:host=$hostname:$port;dbname=$dbname;charset=IBM850", "$username", "$pw"); var_dump($db); Expected result: ---------------- class PDO#1 (0) { } Actual result: -------------- (gdb) bt #0 0x00007fff93ca0650 in strlen () #1 0x00007fff93d27a65 in __vfprintf () #2 0x00007fff93d26337 in vfprintf_l () #3 0x0000000102b98c2f in tdsdump_log () #4 0x0000000102b8031b in dbsetopt () #5 0x00000001026f87bf in pdo_dblib_handle_factory () #6 0x0000000100082134 in zim_PDO_dbh_constructor () #7 0x0000000100d032db in xdebug_execute_internal () #8 0x0000000100266bd1 in zend_do_fcall_common_helper_SPEC () #9 0x0000000100267451 in execute () #10 0x0000000100d03047 in xdebug_execute () #11 0x00000001001dc575 in zend_execute_scripts () #12 0x0000000100180882 in php_execute_script () #13 0x0000000100268c05 in main ()