php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63260 [dblib] Segmentation fault on cli and php-fpm
Submitted: 2012-10-11 09:29 UTC Modified: 2012-10-11 10:13 UTC
From: robsonpeixoto at gmail dot com Assigned:
Status: Duplicate Package: PDO related
PHP Version: 5.4.7 OS: Mac OS X 10.8.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 36 = ?
Subscribe to this entry?

 
 [2012-10-11 09:29 UTC] 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 ()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-11 10:13 UTC] laruence@php.net
dup to #63258
 [2012-10-11 10:13 UTC] laruence@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC