From:             danny at tibibi dot com
Operating system: Windows Server 2008
PHP version:      5.4.4
Package:          Session related
Bug Type:         Bug
Bug description:$_SESSION[$key]["cancel_upload"] doesn't work as documented

Description:
------------
The documentation -
http://us3.php.net/manual/en/session.upload-progress.php -for the Session
Upload Progress feature says that if you set
$_SESSION[$key]["cancel_upload"] to TRUE, then it will cancel the current
file being processed, and all pending files.

This is not what I am experiencing. Instead, it cancels the current file,
but the pending files still go through, unless you set
$_SESSION[$key]["cancel_upload"] to TRUE again and again at the time that
each file is being processed.

Also, what I understood from the documentation is that if you set
$_SESSION[$key]["cancel_upload"] to TRUE, then it stops the current file
and all pending files, therefore stopping the request from processing any
further. I'm not sure if I'm right in assuming this, but it is definitely
not the case. Instead, the complete request finishes (this could be long if
the files are large), and then the $_FILES array has its error set to
UPLOAD_ERR_EXTENSION for all files that were canceled.

It would be nice if setting $_SESSION[$key]["cancel_upload"] to TRUE
actually stopped the request entirely from being processed any further, so
this way it could save the user from waiting long periods of time for
nothing.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=62535&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62535&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62535&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62535&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62535&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62535&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62535&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62535&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62535&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62535&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62535&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62535&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62535&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62535&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62535&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62535&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62535&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62535&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62535&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62535&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62535&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62535&r=mysqlcfg

Reply via email to