|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: majstor_kontakt at yahoo dot co dot uk
New email:
PHP Version: OS:


 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 16:01:33 2024 UTC