|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72432 Segmentation fault 11
Submitted: 2016-06-16 14:01 UTC Modified: 2018-08-27 10:00 UTC
From: attila dot perger at hu dot ibm dot com Assigned: vnkbabu (profile)
Status: Closed Package: ibm_db2 (PECL)
PHP Version: Irrelevant OS: Mac OS X 10.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: attila dot perger at hu dot ibm dot com
New email:
PHP Version: OS:


 [2016-06-16 14:01 UTC] attila dot perger at hu dot ibm dot com
I have executed the next script, but the connection is not established, because of a segmentation fault (11) raised.

I would like to work under MacOS X...

Test script:
$database = 'test01';
$user = 'yyyyy';
$password = 'xxxx';
$hostname = 'localhost';
$port = 50000;

$conn_string = "DRIVER={IBM DB2 ODBC DRIVER};DATABASE=$database;" .
$conn = db2_connect($conn_string, '', '');

if ($conn) {
    echo "Connection succeeded.";
else {
    echo "Connection failed.";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-16 14:04 UTC] attila dot perger at hu dot ibm dot com
I have executed the code with the built in PHP 5.3.15 and with PHP 5.5.33 (build  according to the following page:
 [2017-07-21 06:42 UTC]
I tried the scenario but for me connection was successful. I am running in a macOS Sierra(10.12.5).

Kindly let us know the version you are running and are you running your application with apache or it have any specific php configuration ?
 [2018-08-27 10:00 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: vnkbabu
 [2018-08-27 10:00 UTC]
Kindly test with latest release. If issue still persist kindly reopen it.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Nov 27 03:03:12 2021 UTC