php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39447 Want to optionally handle apc_upload_progress variables using session variables
Submitted: 2006-11-09 11:38 UTC Modified: 2021-05-28 14:28 UTC
Votes:16
Avg. Score:4.8 ± 0.7
Reproduced:11 of 12 (91.7%)
Same Version:10 (90.9%)
Same OS:9 (81.8%)
From: krudtaa at yahoo dot com Assigned: cmb (profile)
Status: Wont fix Package: *General Issues
PHP Version: 5.2.0 OS: All
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: krudtaa at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-11-09 11:38 UTC] krudtaa at yahoo dot com
Description:
------------
The arrival of the new features related to the
apc_upload_progress is really cool.

There is one not so cool thing with it though....
one have to have APC installed to make use of it...
unless I have missed something that is

I'm not much into the source code of PHP or APC but I guess
that it is the PHP 5.2 source that creates a new
object in APC when uploading starts, as well as updating that objects properties (or whatever) like total, current etc...

Would be nice to, optionally, be able to access those values based on session variables.
Probably better based on session variable + unique_id and should live as long as the script that initiated it lives.

So what I would like to see is some variable in php.ini
where I can tell the upload stuff in php to update
session variables instead of an object in the APC cache.

This way it would be usable to more users of PHP, since
not all want to use APC.

If my assumption is correct, that the PHP 5.2 source creates and updates the upload variables: total, current etc,
then this should be doable.

Even if APC will be included in PHP 6 then still not all want to use the APC module.

I do not see any reason at all that I would want to have to use a PECL extension to make this work.
This should really be in the core of PHP.

Can you developers please do this ASAP.

and if you will not do it, then why?

Keep up the good work!



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-11 22:35 UTC] rasmus@php.net
You are slightly confused here.  What PHP 5.2 provides is a set of hooks that the various storage modules can hook into.  It in no way calls anything in APC.  It just so happens that APC was the first extension to add support for those hooks.  The various other extensions that are capable of storing data each need to add support for these hooks.
 [2007-05-28 13:17 UTC] krudtaa at yahoo dot com
Hi.

So, is there any chance to get this work without any extensions like APC in near future.

Why not make the core PHP store the related data in a session variable, still using JSON?

Is there any plans to support upload progress natively in PHP?

The hooks are there, why not make it possible to use them without any extensions?
 [2007-05-28 20:29 UTC] tony2001@php.net
>Is there any plans to support upload progress natively in PHP?

Extensions are native to PHP.

>The hooks are there, why not make it possible to use them 
>without any extensions?

"Why not to make _everything_ possible without any extensions?"
Because it does not make sense.
 [2007-05-29 07:49 UTC] krudtaa at yahoo dot com
Using the word native was probably a miss...

I try one more time:

What I ment by native was this:

Making it possible to use the new upload hooks without having 
to include extensions.

Example:

www.domeneshop.no offers usage of php.

BUT THEY DO NOT OFFER USAGE OF APC, as well as many other.

My point was that by incorporationg a method to use the new upload hooks without having to rely on some extensions that MANY do not
include in their PHP installation, then many many more users of PHP could actually make use of the new (and VERY practical) upload hooks.

And I suggested a way to make it work....
By using session variable to store the data regarding the upload progress, which would be accessible for practically all the PHP installations around (version dependant though).

If you developers do not see this point .... then huhhh 
... I give up.

Why not make it as easy as possible for the users of PHP to be 
able to use the upload hooks, is beyond me.

So come on, let the upload hooks be accessible as it is today, with the usage of extensions like APC....
AND also by using a SESSION variable

And at last...
If you developers are not willing to do this, 
what is your motivation for NOT doing it?
Do you not want most users of PHP to be able to use the new upload hooks?

What matters in the end, at least for me, is what I can offer my end-users.
And beeing able to easily offer them a way to actually see in "real-time" the progress of the upload is a huge step in the right 
direction.
But as it is now, it is just for the few "lucky" ones that are able to make use of APC....

I'm a little confused that there is so little interest in making these new upload hooks more accessible!!!

Regards
 [2007-06-01 09:48 UTC] krudtaa at yahoo dot com
Okay....

More specific request here:

I would like to be able to use the upload hooks with other storage module(s) than APC.

A storage module that are more commonly included in PHP installations than APC.

I would like to see support for the upload hooks in these modules:

-Files module

...and when that works, then why not also make it work against the

-mm module

Maybe, in near future, we can be able to reference a session variable 
in order to read the status from the upload!

So, is there any PHP developer that will make sure this is done?
And when can we expect to see it implemented?
This year, next year, 5 years, ?....
 [2007-10-02 18:37 UTC] brandon at invisionpower dot com
I'm inclined to agree with the request, actually.

The hooks are great.  It's also great that APC provides a way to use them - but what about the thousands (millions?) of users on shared hosting who don't have control over their operating environment.

One of my (many) projects that I'm a part of is a download management system, and of course as you can imagine an upload progress meter is among the top requested features.  I've just implemented one for our next release utilizing APC, but I fear the number of users who will be able to actually utilize it are relatively low.

It would be nice to see some sort of functionality within PHP itself (without the need for any extensions) to be able to utilize the hooks.
 [2008-06-28 13:55 UTC] krudtaa at yahoo dot com
Hi PHP developers.

Does anybody know if somebody are working on this or not?

If not, how long (hours) would it take to develop a solution where one
could use session variables with the upload hooks, so one does not have to install APC to make it work?

If anybody are interested I might want to pay dollars ($$$$) to make this happen to the developer that do it.
 [2021-05-28 14:28 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2021-05-28 14:28 UTC] cmb@php.net
> Does anybody know if somebody are working on this or not?

Apparently not, and rightly so.  If you still feel strongly that
this should be added to the core, pursue the RFC process[1].

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 10:01:30 2024 UTC