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
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:
MUST BE VALID
Solve the problem:
42 + 22 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC