|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48606 getimagesize() wery slow on NTFS
Submitted: 2009-06-19 13:04 UTC Modified: 2009-07-01 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: majstor_kontakt at yahoo dot co dot uk Assigned:
Status: No Feedback Package: GetImageSize related
PHP Version: 5.2.10 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
13 - 2 = ?
Subscribe to this entry?

 [2009-06-19 13:04 UTC] majstor_kontakt at yahoo dot co dot uk
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/');

Expected result:
It must be fast.

Actual result:
It take about 1 sec!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-23 19:12 UTC] 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-23 19:39 UTC] majstor_kontakt at yahoo dot co dot uk
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.
 [2009-06-23 19:41 UTC]
Try in CLI please.
 [2009-07-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 27 06:03:32 2021 UTC