Doc #52582 [Fbk->Opn]: $http_response_header

From: Date: Sun, 15 Aug 2010 13:18:41 +0000
Subject: Doc #52582 [Fbk->Opn]: $http_response_header
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4867@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52582&edit=1 ID: 52582 User updated by: txino at malon dot org Reported by: txino at malon dot org Summary: $http_response_header -Status: Feedback +Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N New Comment: It's true. The documentation doesn't say that $http_response_header is superglobal. It doesn't say anything ;-) I think it's normal to suposse that it's a superglobal. I thinked so. A little note saying: "It's a local variable that is created in the same context you call 'file_get_contents' ..." (using a correct english ... please ;-) can help to avoid errors. Thanks! Previous Comments: ------------------------------------------------------------------------ [2010-08-15 09:21:34] degeberg@php.net It does explain this: "When using the HTTP wrapper, $http_response_header will be populated with the HTTP response headers." It doesn't claim anywhere that $http_response_header is supposed to be a superglobal. What do you suggest the documentation should say? ------------------------------------------------------------------------ [2010-08-11 16:19:25] txino at malon dot org Description: ------------ The $http_response_header variable i not global nor superglobal. It seems like a local variable that is created in the same context you call "file_get_contents" or similar. I don't understand why the documentation does not explain this. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52582&edit=1

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