|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33336 Segmentation fault in get_headers() function
Submitted: 2005-06-14 12:31 UTC Modified: 2005-06-15 13:52 UTC
From: v0yager at chaik dot ru Assigned:
Status: Closed Package: HTTP related
PHP Version: 5.0.4 OS: Fedora core1
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.
Block user comment
Status: Assign to:
Bug Type:
From: v0yager at chaik dot ru
New email:
PHP Version: OS:


 [2005-06-14 12:31 UTC] v0yager at chaik dot ru
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 \

Reproduce code:
script.php contains:

"1.php" contains:


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 %)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-14 15:30 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-06-15 13:52 UTC] v0yager at chaik dot ru
Thanks a lot!!! :)
Now it works
 [2013-09-09 09:37 UTC]
Automatic comment from SVN on behalf of daverandom
Log: Add missing semi-colon in type comparison tables for consistency

Provided by PHDOE anonymous user #33336
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 04:01:23 2020 UTC