|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18163 odbc_free_result()
Submitted: 2002-07-04 08:13 UTC Modified: 2002-07-04 09:23 UTC
From: vharms at computrain dot nl Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.2.1 OS: NT4 Server
Private report: No CVE-ID: None
 [2002-07-04 08:13 UTC] vharms at computrain dot nl
$conn_id = odbc_connect("Events","","",SQL_CUR_USE_ODBC);
$cur = odbc_exec($conn_id,"select place,name from country where subkop = '1'");
	while(odbc_fetch_into($cur, $data)){
		print("<option value='$data[0]'>$data[1]</option>");

When I look at the html source after running this script I see a warning saying: wrong parametercount for odbc_free_result() in <b> D:\InetPub\scripts\datainfo\city.php</b> on line <b>115</b><br>

This is rather dangerous displaying the full path of the document. Somebody could take advantage of this kind of info.

Greetings, Victor


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-04 08:19 UTC]
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit

Thank you for your interest in PHP.

Please set the correct settings in your php.ini file:
display_error=off (or simliar)

 [2002-07-04 09:23 UTC] vharms at computrain dot nl
Sorry but I thought this wasn't a question just a remark that the odbc_free_result() function doesn't do what it should according to the manual. Just disabling the display does not resolve the problem.


PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 05:05:45 2022 UTC