#45402 [Opn]: Call to undefined function sybase_connect()
| From: | fborot at hotmail dot com | Date: | Tue, 01 Jul 2008 15:40:31 +0000 |
| Subject: | #45402 [Opn]: Call to undefined function sybase_connect() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126159@lists.php.net to get a copy of this message | ||
ID: 45402
User updated by: fborot at hotmail dot com
Reported By: fborot at hotmail dot com
Status: Open
Bug Type: Sybase (dblib) related
Operating System: redhat
PHP Version: 5.2.6
New Comment:
I deleted everything related to easysoft odbc driver,deleted the php
installation again, the config.cache on the build directory,ran make
clean and make distclean, remove the old Makefile and compiled it again
and phpinfo() shows support for odbc instead of sybase.
what is happening here? what files do you need me to send/upload?
this is very frustrating
regards
Previous Comments:
------------------------------------------------------------------------
[2008-07-01 14:59:07] fborot at hotmail dot com
how can upload the output of phpinfo()
it is very weird, I just deleted config.cache, the old Makefile, from
the building directory and re-compiled again with the same options,
[./configure
--prefix=/usr/local/php5 --with-mysql=/usr/bin/mysql
--with-sybase=/opt/sybase-11.9.2/OCS-15_0/]
but phpinfo() shows:
Configure Command './configure' '--with-mysql=/usr/bin/mysql'
'--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-unixODBC=shared,/usr/local/easysoft/unixODBC'
magic_quotes_sybase Off Off
SYBASE /opt/sybase-11.9.2
_ENV["SYBASE"] /opt/sybase-11.9.2
which should not be, I tried 2 days ago to use the odbc driver provided
by easysoft because with-sybase-ct and with-sybase it would not
compile.
I guess I should delete the odbc driver and try again, I would like to
attach some files/logs here but don't see how
txs
Fabian
------------------------------------------------------------------------
[2008-07-01 14:30:56] johannes@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Please check the output of phpinfo() to see whether sybase support was
laoded, if it's missing check the configure line mentioned on top of
that page and check configure.log in your build directory.
------------------------------------------------------------------------
[2008-07-01 14:02:05] fborot at hotmail dot com
Description:
------------
I compiled php 5 with sybase support ,[./configure
--prefix=/usr/local/php5 --with-mysql=/usr/bin/mysql
--with-sybase=/opt/sybase-11.9.2/OCS-15_0/] now when I run this script
<?php
// create connection
$connection = sybase_connect("ip","user","passwd");
// test connection
if (!$connection) {
echo "Couldn't make a connection!";
exit;
}
the browser shows
Fatal error: Call to undefined function sybase_connect() in
/usr/local/apache2/htdocs/scon.php on line 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45402&edit=1