ID: 21479 Updated by: [EMAIL PROTECTED] Reported By: info at ofek dot com Status: Assigned Bug Type: GetImageSize related Operating System: win32 only PHP Version: 4.3.2-dev Assigned To: wez New Comment:
Now I can not reproduce this anymore using the given location. (with latest snapshot) Previous Comments: ------------------------------------------------------------------------ [2003-02-20 01:10:51] info at ofek dot com i only get the GPF crash, no messages.. i hope you reproduced the same bug. also since the script in the second comment does crash on my system. we'll see - just tell me when a dev version is ready. ------------------------------------------------------------------------ [2003-02-19 23:12:29] [EMAIL PROTECTED] I finally got around installing PHP to my windows (2k) machine and could reproduce this crash. This is the error I get (as expected): ..function.getimagesize: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in... But it also popups that windows error about '..generated errors..blabla..'. It happens only with longer urls it seems. The one in above comment does not cause the crash for me. Seems like some oddity with the streams stuff, assigning to Wez. :) ------------------------------------------------------------------------ [2003-01-22 22:58:12] info at ofek dot com HOLD IT - I just found out exactly how to reproduce it. please read carefully. 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. ------------------------------------------------------------------------ [2003-01-06 20:17:33] info at ofek dot 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