Skip to content

Commit b477631

Browse files
signeisfedorov
authored andcommitted
Add corrected values for CURLINFO_* constants related to CURLOPT_DEBUGFUNCTION
1 parent c99d99a commit b477631

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

curl/curl_d.php

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4368,34 +4368,49 @@
43684368
* @since 8.4
43694369
*/
43704370
define('CURLOPT_SERVER_RESPONSE_TIMEOUT', 112);
4371+
43714372
/**
43724373
* @since 8.4
43734374
*/
43744375
define('CURLOPT_DEBUGFUNCTION', 1);
4376+
43754377
/**
43764378
* @since 8.4
43774379
*/
4378-
define('CURLINFO_TEXT', 1);
4380+
define('CURLINFO_TEXT', 0);
4381+
43794382
/**
43804383
* @since 8.4
43814384
*/
43824385
define('CURLINFO_HEADER_IN', 1);
4386+
4387+
/*
4388+
* CURLINFO_HEADER_OUT is defined above and has existed since PHP 5.1.3,
4389+
* but is reused in a different context relating to CURLINFO_DEBUGFUNCTION
4390+
*
4391+
* define('CURLINFO_HEADER_OUT', 2);
4392+
*/
4393+
43834394
/**
43844395
* @since 8.4
43854396
*/
4386-
define('CURLINFO_DATA_IN', 1);
4397+
define('CURLINFO_DATA_IN', 3);
4398+
43874399
/**
43884400
* @since 8.4
43894401
*/
4390-
define('CURLINFO_DATA_OUT', 1);
4402+
define('CURLINFO_DATA_OUT', 4);
4403+
43914404
/**
43924405
* @since 8.4
43934406
*/
4394-
define('CURLINFO_SSL_DATA_OUT', 1);
4407+
define('CURLINFO_SSL_DATA_OUT', 5);
4408+
43954409
/**
43964410
* @since 8.4
43974411
*/
4398-
define('CURLINFO_SSL_DATA_IN', 1);
4412+
define('CURLINFO_SSL_DATA_IN', 6);
4413+
43994414
/**
44004415
* @since 8.4
44014416
*/

0 commit comments

Comments
 (0)