#21479 [Com]: function crashes when used with a URL
| From: | info at ofek dot com | Date: | Tue, 07 Jan 2003 03:02:00 +0000 |
| Subject: | #21479 [Com]: function crashes when used with a URL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29265@lists.php.net to get a copy of this message | ||
ID: 21479
Comment by: info@ofek.com
Reported By: info@ofek.com
Status: Feedback
Bug Type: GetImageSize related
Operating System: Windows 2000
PHP Version: 4.3.0
New Comment:
this happens with every image.
Previous Comments:
------------------------------------------------------------------------
[2003-01-06 20:54:40] iliaa@php.net
Does this happen with every image you try or a specific image or two?
In the event of the latter could you please provide a URL to the
offending image.
------------------------------------------------------------------------
[2003-01-06 20:17:33] info@ofek.com
function ImgExists($f) {
$r=@getimagesize("http://localhost/$f");
return $r[2]!=0;
}
if(ImgExists('icon.jpg')) echo('exists!');
when calling this function, php.exe (4.3.0 as CGI in IIS4) is crashing.
remark out the 'getimagesize' line, and it won't crash.
i can email my php.ini on request.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21479&edit=1