ID:               28115
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to