php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vharms at computrain dot nl
New email:
PHP Version: OS:

 

 [2002-07-04 08:13 UTC] vharms at computrain dot nl
<?php
$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>");
	}
odbc_close($conn_id);
odbc_free_result($conn_id);
?>

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-04 08:19 UTC] derick@php.net
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 http://www.php.net/support.php

Thank you for your interest in PHP.

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

Derick
 [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.

Greetings,

Victor
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC