|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1998-03-11 16:54 UTC] rafeco at trinet dot com
If you leave out the quotation marks when requesting data
using odbc_result, PHP.exe crashes.
Here's an example script that crashes PHP every time
(substitute a real DSN, table, and column of course).
<? $wire = odbc_connect("ANY_DSN", "dba", "dba");
$outcome = odbc_do($wire, "SELECT * FROM ANY_TABLE");
odbc_fetch_row($outcome);
$var = odbc_result($outcome, "ANY_FIELD);
?>
Note the missing quotation mark after ANY_FIELD. That's
what causes the crash.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
Fixed (problem occured on a script that terminated in the middle of a function call, e.g. <? foo("bar"