Req #63897 [NEW]: Custom http stream wrappers should be able to set $http_response_header
From: slangley at google dot com
Operating system:
PHP version: Irrelevant
Package: Streams related
Bug Type: Feature/Change Request
Bug description:Custom http stream wrappers should be able to set $http_response_header
Description:
------------
It is possible to write custom http/https stream wrappers in 'native' php,
however
it is impossible to get them to work correctly because of the magic
variable
$http_response_header.
From http://php.net/manual/en/reserved.variables.httpresponseheader.php
"$http_response_header will be created in the local scope." There is no way
that I
can determine that allows a PHP script to create this variable "in the
local
scope".
Perhaps it would be possible to provide a method "set_http_response_header"
that
will allow this variable to be set from a script.
--
Edit bug report at https://bugs.php.net/bug.php?id=63897&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63897&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63897&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63897&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63897&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63897&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63897&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63897&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63897&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63897&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63897&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63897&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63897&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63897&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63897&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63897&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63897&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63897&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63897&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63897&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63897&r=mysqlcfg
Thread (6 messages)
- slangley at google dot com