ID:               48606
 User updated by:  majstor_kontakt at yahoo dot co dot uk
 Reported By:      majstor_kontakt at yahoo dot co dot uk
 Status:           Open
 Bug Type:         GetImageSize related
 Operating System: Windows XP
 PHP Version:      5.2.10
 New Comment:

Yes, the images are on local computer. 
Now I trayed with file path (not with URL), 
and function is fast.

I use apache 2.2 on XP and I do not know whay 
it is sometimes slow when I pass url 
and sometimes is fast on same url. 

Thank you.


Previous Comments:
------------------------------------------------------------------------

[2009-06-23 19:12:58] sjoerd-php at linuxonly dot nl

Thank you for your bug report.

In your example, you pass an URL to getimagesize(). Retrieving the URL
from the server may introduce some delay, independent of getimagesize().
If it takes 1 second to get the file from the server, the given example
still takes 1 second even if getimagesize() is very fast.

Please provide an example which does not use an URL, or provide more
information to show that the delay is caused by getimagesize() and not
by network or webserver problems.

------------------------------------------------------------------------

[2009-06-19 13:04:59] majstor_kontakt at yahoo dot co dot uk

Description:
------------
Big problem with "getimagesize($someUrl)" if my image is on my local
NTFS partition (I use windows xp and PHP5.2.10).
Image is wery small but function need about 1 sec to get data. (On
Fat32 partition it is very fast).

Reproduce code:
---------------
$imgSize =
getimagesize('http://localhost/aukcije/img.domen.com/admin/time_picker_small.png');

Expected result:
----------------
It must be fast.

Actual result:
--------------
It take about 1 sec!


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48606&edit=1

Reply via email to