#33336 [Fbk->Csd]: Segmentation fault in get_headers() function

From: Date: Wed, 15 Jun 2005 11:52:23 +0000
Subject: #33336 [Fbk->Csd]: Segmentation fault in get_headers() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80369@lists.php.net to get a copy of this message
ID: 33336 User updated by: v0yager at chaik dot ru Reported By: v0yager at chaik dot ru -Status: Feedback +Status: Closed Bug Type: HTTP related Operating System: Fedora core1 PHP Version: 5.0.4 New Comment: Thanks a lot!!! :) Now it works Previous Comments: ------------------------------------------------------------------------ [2005-06-14 15:30:58] sniper@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#80369) next »