Bug #76492 [Opn->Fbk]: CURLOPT_VERBOSE cannot be set
| From: | requinix@php.net | Date: | Mon, 18 Jun 2018 09:31:17 +0000 |
| Subject: | Bug #76492 [Opn->Fbk]: CURLOPT_VERBOSE cannot be set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215770@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76492&edit=1
ID: 76492
Updated by: requinix@php.net
Reported by: adrian dot burla at gmail dot com
Summary: CURLOPT_VERBOSE cannot be set
-Status: Open
+Status: Feedback
Type: Bug
Package: cURL related
Operating System: Windows
PHP Version: 7.2.6
Block user comment: N
Private report: N
New Comment:
Delete the line and type it again.
Previous Comments:
------------------------------------------------------------------------
[2018-06-18 09:26:40] adrian dot burla at gmail dot com
Description:
------------
CURL_VERBOSE cannot be set.
The test script throws an error:
Warning: Use of undefined constant  CURLOPT_VERBOSE - assumed ' CURLOPT_VERBOSE'
(this will throw an Error in a future version of PHP) in C:\Projects\Project1\custom_lib.php on line
530
Warning: curl_setopt() expects parameter 2 to be integer, string given in
C:\Projects\Project1\custom_lib.php on line 530
Tried as parameter 2: true, TRUE, 1, '1'
OS: Windows Server 2016, Windows 10
Running in command prompt or power shell.
The other options I set do work, I need VERBOSE to debug a problem with CURL that appears in 7.2.6
and worked in 7.0.x and 7.1.x.
Test script:
---------------
$curl = curl_init();
curl_setopt($curl, CURLOPT_VERBOSE, 1);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76492&edit=1