Edit report at https://bugs.php.net/bug.php?id=63260&edit=1
ID: 63260 Updated by: larue...@php.net Reported by: robsonpeixoto at gmail dot com Summary: [dblib] Segmentation fault on cli and php-fpm -Status: Open +Status: Duplicate Type: Bug Package: PDO related Operating System: Mac OS X 10.8.2 PHP Version: 5.4.7 Block user comment: N Private report: N New Comment: dup to #63258 Previous Comments: ------------------------------------------------------------------------ [2012-10-11 09:29:18] robsonpeixoto at gmail dot com 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 () ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63260&edit=1