|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #163 Missing quotation marks causes crash
Submitted: 1998-03-11 16:54 UTC Modified: 1998-03-13 06:19 UTC
From: rafeco at trinet dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0b5 OS: Windows NT
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rafeco at trinet dot com
New email:
PHP Version: OS:


 [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");
	$var = odbc_result($outcome, "ANY_FIELD);

Note the missing quotation mark after ANY_FIELD.  That's
what causes the crash.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-13 06:19 UTC] zeev
Fixed (problem occured on a script that terminated
in the middle of a function call, e.g. 
<? foo("bar"

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Nov 28 14:03:46 2022 UTC