|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
29 + 3 = ?
Subscribe to this entry?

 [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 Oct 29 20:01:25 2020 UTC