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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 26 09:01:24 2020 UTC