php.net |  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
Votes:1
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
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!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] pajoye@php.net
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-2019 The PHP Group
All rights reserved.
Last updated: Mon Nov 18 11:01:30 2019 UTC