Edit report at https://bugs.php.net/bug.php?id=63800&edit=1
ID: 63800
Comment 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
Package: cURL related
Operating System: Linux
PHP Version: 5.4.9
Block user comment: N
Private report: N
New Comment:
Oh, the version is from debian testing
PHP 5.4.4-10 (cli) (built: Nov 24 2012 11:21:26)
Previous Comments:
------------------------------------------------------------------------
[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