php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: javier at albinarrate dot com
New email:
PHP Version: OS:

 

 [2004-04-23 04:13 UTC] 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");
?>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-23 05:37 UTC] pollita@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 22:01:36 2025 UTC