PHP Test results
| From: | noreply@php.net | Date: | Mon, 21 Oct 2002 11:58:05 +0000 |
| Subject: | PHP Test results | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-6281@lists.php.net to get a copy of this message | ||
array (
'user_name' => 'Christos Michail',
'email' => 'xmixail@ipnet.gr',
'package' => '4.3.0-pre1',
'status' => 'Good',
'os' => 'Solaris',
'os-extra' => 'sparc solaris 2.6',
'sapi' => 'cli',
'automake' => '1.4',
'autoconf' => '2.1.3',
'libtool' => '1.4.0',
'bison' => '1.28',
'mssql' => 'on',
'testframework' => 'The pgram was compiled with \\"--without-mysql
-with-iodbc\\". (iodbc = is the openlink driver for MSSQLSERVER 2000)
Never the less when i try to conenct to an SQL Server machine (using teh
cli/php)
i always get the same message
aaa<br>sa<br>CONNECTION ID = |Resource id #4| (I guess means that the conenction
suceeded)
connected to DSN: eettn
Segmentation Fault(coredump)
The script i try to run is:
<?php
putenv(\\"LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib\\");
putenv(\\"ODBCINSTINI=/usr/local/bin/odbcinst.ini\\");
// this location will be determined by your driver install.
putenv(\\"ODBCINI=/usr/local/bin/odbc.ini\\");
// odbc.ini contains your DSN,location determined by your driver install
$dsn=\\"eettn\\";
// this is a valid DSN that can be tested in odbctest
$user=\\"sa\\";
$password=\\"anmaelky\\";
$sql=\\"SELECT * FROM tab01 where col01=1\\";
echo (\\"$LD_LIBRARY_PATH\\") ;
echo(\\"aaa<br>\\") ;
echo(\\"$user\\") ;
echo(\\"<br>\\") ;
flush() ;
$conn_id=odbc_connect($dsn,\\"sa\\",\\"anmaelky\\") ;
flush() ;
echo(\\"CONNECTION ID = |\\") ;
echo($conn_id) ;
echo(\\"|\\\\n\\\\n\\") ;
flush() ;
if ($conn_id) {
echo \\"connected to DSN: eettn\\\\n\\\\n\\";
$result=odbc_do($conn_id, $sql) ;
echo(\\"$result\\") ;
if($result) {
echo \\"executing \\\'$sql\\\'\\";
echo \\"Results: \\";
odbc_result_all($result);
echo \\"freeing result\\";
odbc_free_result($result);
}else{
echo \\"can not execute \\\'$sql\\\' \\";
}
echo \\"closing connection $conn_id\\";
odbc_close($conn_id);
}else{
echo \\"can not connect to DSN: eettn \\";
}
?>
And further gdb reports :
Program received signal SIGSEGV, Segmentation fault.
0xef474474 in SQLExtendedFetch ()
Thank you in advance
Christos
',
'applications' => '',
'problems' => '',
'bugids' => '',
'remarks' => '',
)