unixodbc bug?
| From: | Jose Morales | Date: | Wed, 07 Aug 2002 09:54:21 +0000 |
| Subject: | unixodbc bug? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111483@lists.php.net to get a copy of this message | ||
hi to all!
im trying to access froma debian with apache and unixodbc to an microsoft sql server 7, in another
machine.
I have not response from apache. In apache log i see this, each time i do a request:
[Wed Aug 7 11:42:26 2002] [notice] child pid 31609 exit signal Segmentation fault (11)
i think that there is a bug in somewhere in apache, unixodbc or php, becouse an apache child dies
each time I do a odbc_connect()
this happens to somebody else?
this is my code:
<html><title>REGISTRO DE LLAMADAS</title><body >
<?php
putenv("ODBCINSTINI=/etc/odbcinst.ini");
putenv("ODBCINI=/etc/odbc.ini");
if(!extension_loaded('odbc'))
{
if(!dl('odbc.so'))
{echo "odbc loaded NOT ok!!!!";}
else
{
echo "trying to connect...";
$cx=odbc_pconnect("cdr2","mylogin","mypasswd");
echo "connected!!";
}
}
?></body></html>