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
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.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC