#28115 [Asn->Csd]: Memory error with context options proxy request_fulluri & redirected Location
| From: | pollita@php.net | Date: | Fri, 23 Apr 2004 03:37:58 +0000 |
| Subject: | #28115 [Asn->Csd]: Memory error with context options proxy request_fulluri & redirected Location | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58611@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: Assigned
+Status: Closed
Bug Type: HTTP related
Operating System: Windows 2000
PHP Version: 5.0.0RC1
Assigned To: pollita
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Thank you for the clear and concise bug report.
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