#33336 [Opn->Fbk]: Segmentation fault in get_headers() function
| From: | sniper@php.net | Date: | Tue, 14 Jun 2005 13:30:59 +0000 |
| Subject: | #33336 [Opn->Fbk]: Segmentation fault in get_headers() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80312@lists.php.net to get a copy of this message | ||
ID: 33336
Updated by: sniper@php.net
Reported By: v0yager at chaik dot ru
-Status: Open
+Status: Feedback
Bug Type: HTTP related
Operating System: Fedora core1
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-06-14 12:31:13] v0yager at chaik dot ru
Description:
------------
php -v:
PHP 5.0.4 (cli) (built: Jun 14 2005 15:46:20)
Copyright (c) 1997-2004 The PHP Group
php configured with options:
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql \
--with-mysql-sock=/var/lib/mysql \
--enable-ftp \
--enable-sysvsem \
--enable-sysvshm \
--enable-sysvmsg \
--enable-debug \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--enable-sockets
Reproduce code:
---------------
script.php contains:
<?php
$headers=get_headers("http://myhost.ru/1.php");
print_r($headers);
?>
=============
"1.php" contains:
<?php
header("Location: ftp://ftp.myhost.ru/video/movie.avi");
?>
=============
Expected result:
----------------
script.php terminated with Segmentation fault when server answer
contains header "Location" to ftp resource. I think it is necessary to
finish recursive calls of this function when header contains Location
"jump" to ftp resource.
PS: Sorry for my bad english %)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33336&edit=1