#39447 [NEW]: Want to optionally handle apc_upload_progress variables using session variables

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #39447 [NEW]: Want to optionally handle apc_upload_progress variables using session variables

    From: krudtaa at yahoo dot com
    Operating system: All
    PHP version: 5.2.0
    PHP Bug Type: Feature/Change Request
    Bug description: Want to optionally handle apc_upload_progress variables using session variables

    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 bug report at [url]http://bugs.php.net/?id=39447&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39447&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39447&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39447&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39447&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=39447&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=39447&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39447&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=39447&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=39447&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=39447&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=39447&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=39447&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=39447&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39447&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=39447&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=39447&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39447&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=39447&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39447&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39447&r=mysqlcfg[/url]
    krudtaa at yahoo dot com Guest

  2. Similar Questions and Discussions

    1. #39833 [NEW]: Session variables overwritten by local variables (register_globals=off)
      From: sup1382 at accedo dot es Operating system: OpenBSD 3.9 PHP version: 5.2.0 PHP Bug Type: Session related Bug...
    2. JRun fails to handle client variables in DB over 8K
      We are in the process of upgrading from CF 4.5 to CF MX 7. Our application uses client variables, which are configured to be stored in a SQL...
    3. How to handle numeric variables in sh?
      Here's a code snippet of a script I use often to number a bunch of pics in a directory that I think shows how to do what you want to do: ...
    4. how to handle 64 bit variables on 32 bit machines ?
      Hi, I'd like to use the ruby/dl library to access function in a C library from ruby. Now these functions take 64 bit parameters und my machine...
    5. variables that change session variables
      Hi, I'm currently writing a mulit-page form app that uses a session to retain data from each form element in order for the user to jump between...
  3. #2

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

    ID: 39447
    Updated by: [email]rasmus@php.net[/email]
    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:

    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.


    Previous Comments:
    ------------------------------------------------------------------------

    [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 [url]http://bugs.php.net/?id=39447&edit=1[/url]
    rasmus@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139