Bug #18163: odbc_free_result()

From: Date: Thu, 04 Jul 2002 12:13:24 +0000
Subject: Bug #18163: odbc_free_result()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13105@lists.php.net to get a copy of this message
From: vharms@computrain.nl Operating system: NT4 Server PHP version: 4.2.1 PHP Bug Type: ODBC related Bug description: odbc_free_result() <?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 -- Edit bug report at http://bugs.php.net/?id=18163&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18163&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18163&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18163&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18163&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18163&r=support Expected behavior: http://bugs.php.net/fix.php?id=18163&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18163&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18163&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18163&r=globals

« previous php.bugs (#13105) next »