php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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:
---------------
<?php
$database = 'test01';
$user = 'yyyyy';
$password = 'xxxx';
$hostname = 'localhost';
$port = 50000;

$conn_string = "DRIVER={IBM DB2 ODBC DRIVER};DATABASE=$database;" .
  "HOSTNAME=$hostname;PORT=$port;PROTOCOL=TCPIP;UID=$user;PWD=$password;";
$conn = db2_connect($conn_string, '', '');

if ($conn) {
    echo "Connection succeeded.";
    db2_close($conn);
}
else {
    echo "Connection failed.";
}
?>


Patches

Pull Requests

History

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: http://php-osx.liip.ch).
 [2017-07-21 06:42 UTC] vnkbabu@php.net
Hi,
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] vnkbabu@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: vnkbabu
 [2018-08-27 10:00 UTC] vnkbabu@php.net
Kindly test with latest release. If issue still persist kindly reopen it.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 17:01:33 2025 UTC