Bug #76492 [NEW]: CURLOPT_VERBOSE cannot be set
| From: | adrian dot burla at gmail dot com | Date: | Mon, 18 Jun 2018 09:26:42 +0000 |
| Subject: | Bug #76492 [NEW]: CURLOPT_VERBOSE cannot be set | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-215769@lists.php.net to get a copy of this message | ||
From: adrian dot burla at gmail dot com
Operating system: Windows
PHP version: 7.2.6
Package: cURL related
Bug Type: Bug
Bug description:CURLOPT_VERBOSE cannot be set
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 bug report at https://bugs.php.net/bug.php?id=76492&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76492&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76492&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76492&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76492&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76492&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76492&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76492&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76492&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76492&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76492&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76492&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76492&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76492&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76492&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76492&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76492&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76492&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76492&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76492&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76492&r=mysqlcfg