#28115 [NEW]: Memory error with context options proxy request_fulluri & redirected Location
| From: | javier at albinarrate dot com | Date: | Fri, 23 Apr 2004 02:13:41 +0000 |
| Subject: | #28115 [NEW]: Memory error with context options proxy request_fulluri & redirected Location | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-58609@lists.php.net to get a copy of this message | ||
From: javier at albinarrate dot com
Operating system: Windows 2000
PHP version: 5.0.0RC1
PHP Bug Type: HTTP related
Bug description: Memory error with context options proxy request_fulluri & redirected Location
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 bug report at http://bugs.php.net/?id=28115&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28115&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28115&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28115&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28115&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28115&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28115&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28115&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28115&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28115&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28115&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28115&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28115&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28115&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28115&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28115&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28115&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28115&r=float