Doc #63800 [Opn->Csd]: CURLOPT_MUTE not defined but mentioned on http://nz1.php.net/manual/en/function

From: Date: Tue, 18 Dec 2012 22:23:32 +0000
Subject: Doc #63800 [Opn->Csd]: CURLOPT_MUTE not defined but mentioned on http://nz1.php.net/manual/en/function
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9301@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63800&edit=1 ID: 63800 Updated by: pierrick@php.net Reported by: hugh at davenport dot net dot nz Summary: CURLOPT_MUTE not defined but mentioned on http://nz1.php.net/manual/en/function -Status: Open +Status: Closed Type: Documentation Problem Package: cURL related Operating System: Linux PHP Version: 5.4.9 -Assigned To: +Assigned To: pierrick Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Documentation was modified Previous Comments: ------------------------------------------------------------------------ [2012-12-18 22:19:42] pierrick@php.net Automatic comment from SVN on behalf of pierrick Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=328838 Log: Document bug #63800 CURLOPT_MUTE was removed in cURL 7.15.5 CURLOPT_RETURNTRANSFER can be use to get the same effect ------------------------------------------------------------------------ [2012-12-18 21:56:41] superspring at gmail dot com Instead of using CURLOPT_MUTE you can use CURLOPT_RETURNTRANSFER to produce a similar output. Both of these suppress the output of the command. ------------------------------------------------------------------------ [2012-12-18 21:50:27] hugh at davenport dot net dot nz Seems that the option was deprecated in libcurl 7.8 and removed in 7.15.5, so this is a documentation issue http://curl.haxx.se/libcurl/c/symbols-in-versions.html ------------------------------------------------------------------------ [2012-12-18 21:40:11] hugh at davenport dot net dot nz Oh, the version is from debian testing PHP 5.4.4-10 (cli) (built: Nov 24 2012 11:21:26) ------------------------------------------------------------------------ [2012-12-18 21:35:38] hugh at davenport dot net dot nz Description: ------------ echo -e '<?php\n$ch=curl_init("http://localhost");curl_setopt($ch, CURLOPT_MUTE, true);\n?>' | php PHP Notice: Use of undefined constant CURLOPT_MUTE - assumed 'CURLOPT_MUTE' in - on line 2 PHP Warning: curl_setopt() expects parameter 2 to be long, string given in - on line 2 Test script: --------------- echo -e '<?php\n$ch=curl_init("http://localhost");curl_setopt($ch, CURLOPT_MUTE, true);\n?>' | php PHP Notice: Use of undefined constant CURLOPT_MUTE - assumed 'CURLOPT_MUTE' in - on line 2 PHP Warning: curl_setopt() expects parameter 2 to be long, string given in - on line 2 Expected result: ---------------- CURLOPT_MUTE is defined, and setting that option mutes cURL Actual result: -------------- undefined constant, setopt fails ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63800&edit=1

« previous php.doc.bugs (#9301) next »