#28115 [Opn->Asn]: Memory error with context options proxy request_fulluri & redirected Location
| From: | pollita@php.net | Date: | Fri, 23 Apr 2004 03:00:53 +0000 |
| Subject: | #28115 [Opn->Asn]: Memory error with context options proxy request_fulluri & redirected Location | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58610@lists.php.net to get a copy of this message | ||
ID: 28115
Updated by: pollita@php.net
Reported By: javier at albinarrate dot com
-Status: Open
+Status: Assigned
Bug Type: HTTP related
Operating System: Windows 2000
PHP Version: 5.0.0RC1
-Assigned To:
+Assigned To: pollita
Previous Comments:
------------------------------------------------------------------------
[2004-04-23 04:13:40] javier at albinarrate dot com
Description:
------------
The combination of
*Context http option "proxy"
*Context http option "request_fulluri"
*A redirection with the "Location" header
Causes a memory error at least in Windows 2000
The error is:
php-cgi.exe - Application Error
The instruction at "0x1003cbb3" referenced memory at "0x00320035". The
memory could not be "read".
Reproduce code:
---------------
<? // Filename test.php
$url = 'http://domain/test/redir.php';
$options = array (
'http' => array ('proxy' => 'tcp://10.0.0.1:8080',
'request_fulluri' => true
)
);
$context = stream_context_create($options);
$handle = fopen($url, 'r', 0 , $context);
fpassthru($handle);
?>
<? // Filename redir.php
header("Location: ../index.php");
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28115&edit=1