#21835 [Bgs]: Crashes with 6 slashes in URL and non-existant file

From: Date: Thu, 23 Jan 2003 05:41:17 +0000
Subject: #21835 [Bgs]: Crashes with 6 slashes in URL and non-existant file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31038@lists.php.net to get a copy of this message
ID: 21835 User updated by: info@ofek.com Reported By: info@ofek.com Status: Bogus Bug Type: GetImageSize related Operating System: Win 2000 IIS (CGI) PHP Version: 4.3.0 New Comment: sorry - i wasn't sure, since the last report was changed to 'bogus' if it's already part of history and also the new summary field is more exact. i will follow with comments with previous report (21479) Previous Comments: ------------------------------------------------------------------------ [2003-01-22 23:24:51] sniper@php.net Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. don\'t submit two reports about same issue.. ------------------------------------------------------------------------ [2003-01-22 23:04:36] info@ofek.com please read carefully. this crashes PHP. (i.e. PHP.exe causes a GPF) the code is: <?php function ImageExists($url) { $r=@getimagesize($url); return $r[2]!=0; } echo ImageExists('http://domain/dir1/dir2/dir3/image.gif'); ?> make sure the path: http://domain/dir1/dir2/dir3/ containts THREE directories after the domain (i.e. 6 forward-slashes total), and that the PATH physically EXISTS. AND make sure that the file (in code 'image.gif') DOES NOT exist. You can test against: http://economads.com/libaware/_font/title/image.gif This crashes on my server - running PHP 4.3.0 as CGI with IIS Win2000. Hope this helps. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21835&edit=1

« previous php.bugs (#31038) next »