php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57423 Data not updating
Submitted: 2006-12-08 11:48 UTC Modified: 2009-06-16 01:45 UTC
From: s_haslam at yahoo dot com Assigned:
Status: No Feedback Package: uploadprogress (PECL)
PHP Version: 5.2.0 RC4 OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: s_haslam at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-12-08 11:48 UTC] s_haslam at yahoo dot com
Description:
------------
Durring the upload, it never refreshed the data - always said the same information as the file uploaded

The .wr file does in fact, update after the upload has completed, with the final details (having initial details as the upload occured, but never updated after the initial write).  So i dont believe this is a file permission issue.

I believe line 163 isnt returning as true in the middle of uploads:

163: if (dt ||  event >= MULTIPART_EVENT_FILE_END) {

leading me to believe 'dt' isnt updating like it should.

so i dont know if adjusting "time_t crtime" to make it compile on windows has broken it, but that would be my bet.


Reproduce code:
---------------
while uploading any file, a seperate window tracked the output of uploadprogress_get_info().

Happens every time on my machine.

Expected result:
----------------
I expected an array that changed each time it was called as it uploaded, however, it always returned the same array with the same numbers (different with each upload attempt, but never changed as the upload occured)

Actual result:
--------------
Actual Example:

Array ( 
     [time_start] => 1165591348 
     [time_last] => 1165591349 
     [speed_average] => 4950328 
     [speed_last] => 4945102 
     [bytes_uploaded] => 4950328 
     [bytes_total] => 72237348 
     [files_uploaded] => 0 
     [est_sec] => 13 
) 

nothing changed as the upload proceded.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-11 17:14 UTC] s_haslam at yahoo dot com
I have found some more information on this issue.

With the module turned on, the $_FILES array is returning an error of 8

Value: 8; File upload stopped by extension. Introduced in PHP 5.2.0. 

But testing with the same file and form, without the extension turned on, it uploaded without issue.  So something about the extension is erroring out file uploads in general (which i imagine is the same issue with the upload progress not progressing)
 [2006-12-16 04:57 UTC] krudtaa at yahoo dot com
Just wonder why this windows DLL is not marked as buggy on the download page here:
http://pecl4win.php.net/ext.php/php_uploadprogress.dll

It is quite annoying using time on such a package only to find out that current version is not working at all.

IMHO every package that has a serious issue as this one should have a big red flag next to the package that is downloadable.

Just to save people time and frustration.
 [2007-01-19 15:19 UTC] gsawatzky at novra dot com
I found that with the extension loaded large uploads failed but small ones succeeded.  That is I modified php.ini to allow 100MB uploads and I was testing with say 60MB files and they worked fine without the extension.  Load the extension and they fail and the Files comes back with no type and 0 bytes.  Small uploads still work with the extension loaded.  But I don't need progress for small uploads ;-)

Hope this observation helps solve the problem.
 [2007-01-26 07:42 UTC] votemash at gmail dot com
Having the same issues - Data returned doesn't update during the upload, and resultant $_FILES array has an error value 8. Using Apache 2.0.58 and PHP 5.2. uploadprogress version 0.3.1-dev.
 [2007-02-28 13:03 UTC] derek at spectravp dot com
Same issues as above: Win Server 2003, PHP 5.2, Upload 
Progress 0.3.1-dev
 [2007-04-30 05:29 UTC] asimrafi75 at gmail dot com
Same issues as above: Win XP Pro SP2, PHP 5.2.1, Apache 2.0.59 , Upload Progress 0.3.1-dev
 [2007-04-30 06:55 UTC] chregu@php.net
uploadprogress doesn't currently work on windows... I I have 
no idea how to fix it, as i don't have a windows developement 
environment

Patches are welcome
 [2007-05-21 09:39 UTC] akakunin at emdev dot ru
Finally we managed to make it working under Win32. Some comments as well as fixed sources and compiled version available here: http://www.emforge.org/wiki/AjaxBasedFileUploadForPHP
 [2007-05-21 11:20 UTC] chregu@php.net
Alexey: Thanks a lot for that. Looks ok, but did you 
intentionally change

VCWD_FOPEN() to fopen() and if so, why? :)

If you can clarify this, I will commit the code (and release a 
new version)
 [2007-05-21 13:48 UTC] akakunin at emdev dot ru
Yes, we changed VCWD_FOPEN to fopen... As I wrote - we are not very familiar with PHP Extensions development - and fixed this extension only because we needed it urgently. We found that if we used VCWD_FOPEN function - we got 'lock' exception from latelly called fprintf or fgets... Probably, instead of these functions we should also use some PHP-specific functinos for working with files - I do not know - but changing from VCWD_FOPEN to fopen let us avoid these problems
 [2007-08-09 16:10 UTC] athlan at vgroup dot pl
Same issues as above: Win XP Media Center Edition SP2, PHP 5.2.3, Apache 2.2.4 , Upload
Progress 0.3.1-dev
 [2007-10-14 03:37 UTC] trustpunk at gmail dot com
Same issue as above (Running: Windows XP). I tried this on Abyss and Apache web server with no updating of the upload status. What is going on? I can see the text file that has the upload information but it won't update. I also use print_r() function to output the $_FILES array, and I see error code #8 with my upload aborted. This bug still exists even with the PECL package of PHP 5.2.4! When will this be fixed?
 [2007-10-14 03:52 UTC] trustpunk at gmail dot com
@akakunin,

Your extension has a slight problem. It seems as though a text file is left behind in the temporary directory when the upload  has finished. Can you fix it?

By the way, your extension is the only one that works!

Thank You.

Kind regards, Josh
 [2007-11-07 17:15 UTC] ryan at tankprofiler dot com
I'm experiencing the same problem on server 2003 w/ IIS.  It works awesome on gentoo though!  Current version on both servers is 5.2.4

Please fix this fellas :) !
 [2009-03-13 02:32 UTC] chregu@php.net
We may have a proper patch now, which makes this work on 
Windows. Please get the dll from

http://downloads.php.net/pierre/

you almost certainly need
http://downloads.php.net/pierre/php_uploadprogress-cvs-
200903012-5.2-Win32.zip

but there's a non thread safe version too at
http://downloads.php.net/pierre/php_uploadprogress-cvs-
200903012-5.2-nts-Win32.zip

or compile it for yourself from CVS

I have one report, that it works with this on Windows, more 
feedback would be appreciated.
 [2009-06-16 01:45 UTC] chregu@php.net
No more reports. Closing it
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 04:01:28 2024 UTC