Bug #76492 [Fbk->Nab]: CURLOPT_VERBOSE cannot be set
| From: | requinix@php.net | Date: | Mon, 18 Jun 2018 13:46:08 +0000 |
| Subject: | Bug #76492 [Fbk->Nab]: CURLOPT_VERBOSE cannot be set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215776@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: Feedback
+Status: Not a bug
Type: Bug
Package: cURL related
Operating System: Windows
PHP Version: 7.2.6
Block user comment: N
Private report: N
New Comment:
Notice the unusual space before the name of the constant in the error message? Twice? It's
likely a 0xA0 non-breaking space - most often caused by hitting shift+space using a word processor.
It's a valid byte for identifiers in PHP which is why there wasn't a syntax error.
Previous Comments:
------------------------------------------------------------------------
[2018-06-18 12:38:27] adrian dot burla at gmail dot com
It works; I checked the old file, there is no strange character in it, no explanation for the
behavior. What is causing this?
------------------------------------------------------------------------
[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