Edit report at https://bugs.php.net/bug.php?id=63414&edit=1
ID: 63414
Comment by: chad dot scott at gmail dot com
Reported by: xergin at gmail dot com
Summary: built-in upload progress mechanism does not work
with custom session handler
Status: Feedback
Type: Bug
Package: *General Issues
Operating System: ubuntu 12.04 x86_64
PHP Version: 5.4.8
Block user comment: N
Private report: N
New Comment:
I haven't gone deep enough into the PHP source to identify what's going on, but
it
appears that PHP writes the upload progress session data using the handler set
in
"session.save_handler", ignoring any custom session handler. On Ubuntu 12.04
with
the default settings, this means the data is going into
"/var/lib/php5/sess_<id>".
Previous Comments:
------------------------------------------------------------------------
[2012-11-02 02:57:44] [email protected]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
could you make a simple test script to illustrate your point? thanks
------------------------------------------------------------------------
[2012-11-01 18:21:07] xergin at gmail dot com
Description:
------------
By default php stores sessions in files (default filepath is /var/lib/php5).
If we want to store sessions, for example, in database, upload progress info
doesn't appears there. Even If we change session_save_path to another directory
we
will get the same problem.
P.S. script example you could get here:
https://github.com/ihabunek/php-upload-progress
and custom session handler example here:
http://durak.org/sean/pubs/software/php-5.4.6/function.session-set-save-
handler.html
Thanks,
Anton
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63414&edit=1