PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR » Bug #6974

Interaction between Ubuntu packages and mdb2 install

Details

Submitted2006-03-01 16:07 UTC
Frommwilson at appliedhandling dot com
StatusBogus
PackagePEAR
PHP Version5.0.5
OSUbuntu 5.10
Roadmaps(Not assigned)

Comments

[2006-03-01 16:07 UTC] mwilson at appliedhandling dot com

Description:
------------
I installed php and php-pear from Ubuntu's packages (leaving me with php5.0.5-ubuntu1). Ubuntu makes mssql support available through their php5-sybase package (there is no seperate php5-mssql package), installing that makes the basic php functions like:

mssql_connect, mssql_query, etc

available and usable.

Having confirmed that this basic level of functionality works, I installed mdb2 from the pear installer. Attempting

pear install MDB2_Driver_mssql

generated the error:
"extension mssql is not compiled into PHP"

using the --nodeps switch allowed it to install successfully, however, the driver also checks its dependencies on startup, so those lines had to be commented out as well (in /usr/share/php/mdb2/mssql.php).

Initial testing indicates that everything works. I can connect to the database, retrieve results, and otherwise use everything, but these dependency checks fail.

This is clearly an interaction problem between the mdb2 dependency check and the way that the Ubuntu package enables mssql functionality, so I may cross-post this over there. Or it may be a misunderstanding of things on my part -- I am no expert.

[2006-06-09 14:55 UTC] arne dot anka at web dot de

debian/unstable has exactly the same problem.
as the sybase-extension works fairly well i think the package might depend on either mssql or sybase -- don't know if other distributions build their php with mssql or if it is possible at all to build it with mssql in linux.
regarding "would have been reported a long time ago by many others": how many php-installations running in linux might be out there using an mssql-database -- and thus potentially stumbling over this problem?