Bug 127786

Summary: databases/php5-odbc - Segmentation fault with php unixodbc extension
Product: Ports & Packages Reporter: Alvin Garrison <agarrison>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Alvin Garrison 2008-10-01 21:40:01 UTC
If you install the php5-extension port with the ODBC option checked then every time you run php it does a segmentation fault/core dump like below
gdev# php -v
PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Oct  1 2008 14:13:43)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
Segmentation fault (core dumped)

We have run across this issue with several machines.

Fix: 

Simply commenting out the odbc extension in the extenstions.ini file fixes the issue in that you no longer get a segmentation fault, but you cannot use unixodbc with php now.
How-To-Repeat: Simply install the php5-extension with odbc checked/enabled
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-10-01 22:10:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2008-10-10 19:39:28 UTC
State Changed
From-To: open->feedback

Can you try to change the load order of the odbc extension in extensions.ini?
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2008-10-10 20:00:19 UTC
State Changed
From-To: feedback->closed

It worked.