#21479 [Fbk->Opn]: Crashes with 6 slashes in URL and non-existant file
| From: | info at ofek dot com | Date: | Wed, 12 Feb 2003 17:44:07 +0000 |
| Subject: | #21479 [Fbk->Opn]: Crashes with 6 slashes in URL and non-existant file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32900@lists.php.net to get a copy of this message | ||
ID: 21479
User updated by: info@ofek.com
-Summary: function crashes when used with a URL
Reported By: info@ofek.com
-Status: Feedback
+Status: Open
Bug Type: GetImageSize related
-Operating System: Windows 2000
+Operating System: Win 2000 IIS (CGI)
PHP Version: 4.3.0
New Comment:
it still crashes, the only difference is -
with php 4.3.1 the php.exe application error message i get is:
The instruction at "0x77fcb9f8" referenced memory at "0x00e4803a". The
memory could not be "written".
with php 4.3.0 the php.exe application error message i get is:
The instruction at "0x77fcb9f8" referenced memory at "0x00e2703a". The
memory could not be "written".
Previous Comments:
------------------------------------------------------------------------
[2003-02-10 19:26:11] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
I cannot replicate the bug using Windows XP + PHP 4.3.1-dev.
------------------------------------------------------------------------
[2003-01-25 12:30:11] helly@php.net
I cannot reproduce this with 4.4:
[c:\dokumente und einstellungen\marcus]c:\Programme\PHP4\php.exe
<?php
print_r(getimagesize('http://economads.com/libaware/_font/title/image.gif'));
?>
^Z
Content-type: text/html
X-Powered-By: PHP/4.4.0-dev
<br />
<b>Warning</b>:
getimagesize(http://economads.com/libaware/_font/title/image.gif) [<a
href='http://www.php.net/function.getimagesize'>function.getimagesize</a>]:
failed to create stream: HTTP request failed! HTTP/1.1 404 Object Not
Found in <b>C:\Dokumente und Einstellungen\marcus\-</b> on line
<b>2</b><br />
[c:\dokumente und einstellungen\marcus]php -v
PHP 4.4.0-dev (cgi-fcgi), Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.4.0, Copyright (c) 1998-2003 Zend Technologies
------------------------------------------------------------------------
[2003-01-22 23:30:23] sniper@php.net
I can not reproduce this within Linux, I guess this is
yet another windows only bug..
------------------------------------------------------------------------
[2003-01-22 22:58:12] info@ofek.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-20 17:13:18] sniper@php.net
Ahha..so you had propably the old php4ts.dll there, from
previous version...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21479
--
Edit this bug report at http://bugs.php.net/?id=21479&edit=1