I am writting a class which communicates with a server through sockets and sends HTTP request.
I am using http_parse_headers function from pecl_http, but I didn't install it, so I've written a workaround. There are many on the documentation page. They all returns the HTTP status code as well (as a status key, or a 0 key). What I would like to know: does the original function returns it somehow? I would like to clone the functionality, so if anyone has this extension installed, the original function can be used.