From: v0yager at chaik dot ru
Operating system: Fedora core1
PHP version: 5.0.4
PHP Bug Type: HTTP related
Bug description: Segmentation fault in get_headers() function
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 bug report at http://bugs.php.net/?id=33336&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33336&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33336&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33336&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33336&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33336&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33336&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33336&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33336&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33336&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33336&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33336&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33336&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33336&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33336&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33336&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33336&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33336&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33336&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33336&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33336&r=mysqlcfg