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

From: Date: Tue, 18 Dec 2012 21:50:27 +0000
Subject: Bug->Doc #63800 [Opn]: 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-9298@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 User updated by: hugh at davenport dot net dot nz 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 -Type: Bug +Type: Documentation Problem Package: cURL related Operating System: Linux PHP Version: 5.4.9 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#9298) next »