#39447 [Bgs->Opn]: Want to optionally handle apc_upload_progress variables using session variables

From: Date: Tue, 29 May 2007 07:49:43 +0000
Subject: #39447 [Bgs->Opn]: Want to optionally handle apc_upload_progress variables using session variables
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113138@lists.php.net to get a copy of this message
ID: 39447 User updated by: krudtaa at yahoo dot com Reported By: krudtaa at yahoo dot com -Status: Bogus +Status: Open Bug Type: Feature/Change Request Operating System: All PHP Version: 5.2.0 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2007-05-28 20:29:43] 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-28 13:17:57] 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? ------------------------------------------------------------------------ [2006-11-11 22:35:05] 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. ------------------------------------------------------------------------ [2006-11-09 11:38:59] 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! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39447&edit=1

« previous php.bugs (#113138) next »