Edit report at http://bugs.php.net/bug.php?id=53080&edit=1
ID: 53080 Updated by: cataphr...@php.net Reported by: kevinpleiter at gmail dot com Summary: Error when request on port 3306 -Status: Open +Status: Bogus Type: Bug Package: cURL related Operating System: Windows XP PHP Version: Irrelevant Block user comment: N New Comment: Sorry, but 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 as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); should be curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); otherwise the response is printed. Previous Comments: ------------------------------------------------------------------------ [2010-10-15 23:45:14] kevinpleiter at gmail dot com Description: ------------ When I get a request from a host which is using mysql, I'll get an error I can't turn off ("R (strange chars) Host 'XXXXX' is not allowed to connect to this MySQL server"). I can't suppress this error. Test script: --------------- $host = 'www.hostUSINGmysql.com'; // for example www.schutterijkleintuindorp.nl $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_PORT, 3306); $test = curl_exec($ch); if(!empty($test)) { $page .= 'JA - 3306<br />'; } else { $page .= 'Nee - 3306<br />'; } echo $page; curl_close($ch); Expected result: ---------------- Getting JA - 3306 or NEE 3306 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53080&edit=1