Doc #80159 [NEW]: CURLOPT_PRIVATE does not accept array

From: Date: Tue, 29 Sep 2020 00:09:15 +0000
Subject: Doc #80159 [NEW]: CURLOPT_PRIVATE does not accept array
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17920@lists.php.net to get a copy of this message
From: divinity76 at gmail dot com Operating system: Windows 10 x64 v1903 PHP version: 7.3.22 Package: *Network Functions Bug Type: Documentation Problem Bug description:CURLOPT_PRIVATE does not accept array Description: ------------ doing php -r 'curl_setopt(curl_init(),CURLOPT_PRIVATE,array());' gives: PHP Notice: Array to string conversion in Command line code on line 1 and for that matter, trying an object gives: PHP Recoverable fatal error: Object of class stdClass could not be converted to string in Command line code on line 1 the documentation doesn't mention any restrictions on the value that goes into CURLOPT_PRIVATE, but testing suggest that it only accept strings, either it's missing documentation (i'm guessing that's the case), or a bug is preventing anything except strings from being inserted. Test script: --------------- php -r 'curl_setopt(curl_init(),CURLOPT_PRIVATE,array());' Actual result: -------------- PHP Notice: Array to string conversion in Command line code on line 1 -- Edit bug report at https://bugs.php.net/bug.php?id=80159&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80159&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80159&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80159&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80159&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80159&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80159&r=support Expected behavior: https://bugs.php.net/fix.php?id=80159&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80159&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80159&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80159&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80159&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80159&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80159&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80159&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80159&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80159&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80159&r=mysqlcfg

« previous php.doc.bugs (#17920) next »