PHP 4.0 Bug #7246: Using Sybase function(s) makes php to crash
| From: | toren at exense dot com | Date: | Mon, 16 Oct 2000 15:13:09 +0000 |
| Subject: | PHP 4.0 Bug #7246: Using Sybase function(s) makes php to crash | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35142@lists.php.net to get a copy of this message | ||
From: toren@exense.com
Operating system: Win32
PHP version: 4.0.3pl1
PHP Bug Type: Sybase-ct (ctlib) related
Bug description: Using Sybase function(s) makes php to crash
This script makes php crash, and it has been like this since version 4.0b4. I never tested it on
version 3.
<?php
$db = sybase_pconnect("myserv", "myusr", "") ;
sybase_select_db("mydb",$db);
$result = sybase_query("SELECT col1, col2,..... FROM mytab",$db);
echo "<table border=1>\n";
echo "<tr><td>Code</td><td>Name</td>\n";
while ($myrow = sybase_fetch_row($result)) {
printf("<tr><td>%s</td><td>%s</td><td>%s</td></tr>\n",
$myrow[0],
$myrow[1], $myrow[2]);
}
sybase_close($db);
?>
If you run the php.exe you will get an exeption handle in the executable when sybase returnes, and
if you run it as a moudle on Apache you just get a blank page.
If you set the min message level to 10 you will get the db message which says "changed db
to....." before php dies.
My php.ini is the standard one with the php_sybase_ct.dll enabled.
--
Edit Bug report at: http://bugs.php.net/?id=7246&edit=1