Skip to content

How BG(last_repsonse_headers) gets its value in PHP ? #17019

@HeenaBansal20

Description

@HeenaBansal20

Description

HI ,

I apologize for raising a bug issue though It is a question..
Since I don't find the Issue type:Question , I need to submit as a Bug.
May be you can add one more isse type as questions/general category to handle these kind of requests.


On the side note:

I am looking the implementation of the function http_get_last_response_headers and came across global variable BG(last_repsonse_heaqders)
However I would like to know how this val gets populated and gets its value. I cannot see any much reference for this zval literal in php src code.
I am basically looking how php captures the response headers from http stream.
Thanks

PHP Version

PHP 8.3

Operating System

Ubuntu 22.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions