From:             robsonpeixoto at gmail dot com
Operating system: Mac OS X 10.8.2
PHP version:      5.4.7
Package:          PDO related
Bug Type:         Bug
Bug description:[dblib] Segmentation fault on cli and php-fpm

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 bug report at https://bugs.php.net/bug.php?id=63260&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63260&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63260&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63260&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63260&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63260&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63260&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63260&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63260&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63260&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63260&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63260&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63260&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63260&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63260&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63260&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63260&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63260&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63260&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63260&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63260&r=mysqlcfg

Reply via email to