File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ Curl::setXmlDecoder($mixed)
288
288
Curl::success($callback)
289
289
Curl::unsetHeader($key)
290
290
Curl::unsetProxy()
291
- Curl::verbose($on = true, $output = STDERR)
291
+ Curl::verbose($on = true, $output = ' STDERR' )
292
292
MultiCurl::__construct($base_url = null)
293
293
MultiCurl::__destruct()
294
294
MultiCurl::addCurl(Curl $curl)
Original file line number Diff line number Diff line change @@ -1296,8 +1296,15 @@ public function removeHeader($key)
1296
1296
* @param bool $on
1297
1297
* @param resource $output
1298
1298
*/
1299
- public function verbose ($ on = true , $ output = STDERR )
1299
+ public function verbose ($ on = true , $ output = ' STDERR ' )
1300
1300
{
1301
+ if ($ output === 'STDERR ' ) {
1302
+ if (!defined ('STDERR ' )) {
1303
+ define ('STDERR ' , fopen ('php://stderr ' , 'wb ' ));
1304
+ }
1305
+ $ output = STDERR ;
1306
+ }
1307
+
1301
1308
// Turn off CURLINFO_HEADER_OUT for verbose to work. This has the side
1302
1309
// effect of causing Curl::requestHeaders to be empty.
1303
1310
if ($ on ) {
You can’t perform that action at this time.
0 commit comments