#21835 [NEW]: Crashes with 6 slashes in URL and non-existant file
| From: | info at ofek dot com | Date: | Thu, 23 Jan 2003 05:04:36 +0000 |
| Subject: | #21835 [NEW]: Crashes with 6 slashes in URL and non-existant file | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-31032@lists.php.net to get a copy of this message | ||
From: info@ofek.com
Operating system: Win 2000 IIS (CGI)
PHP version: 4.3.0
PHP Bug Type: GetImageSize related
Bug description: Crashes with 6 slashes in URL and non-existant file
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 bug report at http://bugs.php.net/?id=21835&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21835&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21835&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21835&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21835&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21835&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21835&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21835&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21835&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21835&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21835&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21835&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21835&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21835&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21835&r=gnused