|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-18 21:40 UTC] hugh at davenport dot net dot nz
[2012-12-18 21:50 UTC] hugh at davenport dot net dot nz
-Type: Bug
+Type: Documentation Problem
[2012-12-18 21:50 UTC] hugh at davenport dot net dot nz
[2012-12-18 21:56 UTC] superspring at gmail dot com
[2012-12-18 22:19 UTC] pierrick@php.net
[2012-12-18 22:23 UTC] pierrick@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: pierrick
[2012-12-18 22:23 UTC] pierrick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
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