#21479 [NEW]: function crashes when used with a URL

From: Date: Tue, 07 Jan 2003 02:17:33 +0000
Subject: #21479 [NEW]: function crashes when used with a URL
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29260@lists.php.net to get a copy of this message
From:             info@ofek.com
Operating system: Windows 2000
PHP version:      4.3.0
PHP Bug Type:     GetImageSize related
Bug description:  function crashes when used with a URL

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 bug report at http://bugs.php.net/?id=21479&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21479&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21479&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21479&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21479&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21479&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21479&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21479&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21479&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21479&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21479&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21479&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21479&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21479&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21479&r=gnused



Thread (36 messages)

« previous php.bugs (#29260) next »