|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-14 15:30 UTC] sniper@php.net
[2005-06-15 13:52 UTC] v0yager at chaik dot ru
[2013-09-09 09:37 UTC] daverandom@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
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 %)