ID: 39447 Updated by: [EMAIL PROTECTED] Reported By: krudtaa at yahoo dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: All PHP Version: 5.2.0 New Comment:
>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. Previous Comments: ------------------------------------------------------------------------ [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] [EMAIL PROTECTED] 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
