|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-23 09:42 UTC] toren at exense dot com
[2001-05-28 06:53 UTC] toren at exense dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
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.