|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28115 Memory error with context options proxy request_fulluri & redirected Location
Submitted: 2004-04-23 04:13 UTC Modified: 2004-04-23 05:37 UTC
From: javier at albinarrate dot com Assigned: pollita (profile)
Status: Closed Package: HTTP related
PHP Version: 5.0.0RC1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: javier at albinarrate dot com
New email:
PHP Version: OS:


 [2004-04-23 04:13 UTC] javier at albinarrate dot com
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://',
  'request_fulluri' => true
$context = stream_context_create($options);
$handle = fopen($url, 'r', 0 , $context);

<? // Filename redir.php
 header("Location: ../index.php");


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-23 05:37 UTC]
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
Thank you for the report, and for helping us make PHP better.

Thank you for the clear and concise bug report.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Dec 03 16:01:30 2020 UTC