Bug #76492 [Com]: CURLOPT_VERBOSE cannot be set

From: Date: Mon, 18 Jun 2018 12:38:27 +0000
Subject: Bug #76492 [Com]: CURLOPT_VERBOSE cannot be set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215772@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 Comment by: adrian dot burla at gmail dot com Reported by: adrian dot burla at gmail dot com Summary: CURLOPT_VERBOSE cannot be set Status: Feedback Type: Bug Package: cURL related Operating System: Windows PHP Version: 7.2.6 Block user comment: N Private report: N New Comment: It works; I checked the old file, there is no strange character in it, no explanation for the behavior. What is causing this? Previous Comments: ------------------------------------------------------------------------ [2018-06-18 09:31:16] requinix@php.net Delete the line and type it again. ------------------------------------------------------------------------ [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

« previous php.bugs (#215772) next »