php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61419 Upload Progress returning empty array
Submitted: 2012-03-16 18:47 UTC Modified: 2013-10-15 11:54 UTC
Votes:6
Avg. Score:4.2 ± 1.2
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:2 (40.0%)
From: jasmin_z at hotmail dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.4.0 OS: Debian 6 Squeeze x64
Private report: No CVE-ID: None
 [2012-03-16 18:47 UTC] jasmin_z at hotmail dot com
Description:
------------
Session upload tracking is returning empty array when queued.
PHP is build from source using following configure string:

./configure --prefix=/usr/local --sysconfdir=/etc/php --localstatedir=/var --libdir=/usr/lib64 --with-layout=GNU --with-config-file-path=/etc/php --with-config-file-scan-dir=/etc/php/conf.d --with-openssl --with-mcrypt --with-zlib --with-tidy --with-bz2 --with-curl --with-curlwrappers --with-mhash --with-pear --with-imap=/usr/lib64/ --with-imap-ssl --with-kerberos --with-gettext --with-pic --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/run/mysql/mysql.sock --with-gd --with-xsl --with-xmlrpc --with-mm --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-fpm-user=www-data --with-fpm-group=www-data --enable-gd-native-ttf --enable-pcntl --enable-calendar --enable-ftp --enable-exif --enable-intl --enable-mbstring --enable-sockets --enable-zip --enable-soap --enable-fpm --disable-debug --disable-rpath


Webserver used is nginx (1.0.14) built from source.

Test script:
---------------
http://www.neowin.net/forum/topic/1063478-php-540-upload-tracking-returning-empty-array/

Expected result:
----------------
Array containing information about files being uploaded.

Actual result:
--------------
array(0) {
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-19 05:44 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2012-03-19 05:44 UTC] laruence@php.net
Plz use a huge size file to test, since you set the 
session.upload_progress.cleanup on,  which means, the upload info will be clean 
as soon as all the post data was parsed. see: 
http://cn.php.net/manual/en/session.configuration.php#ini.session.upload-
progress.cleanup
 [2012-03-19 14:03 UTC] jasmin_z at hotmail dot com
-Status: Feedback +Status: Open
 [2012-03-19 14:03 UTC] jasmin_z at hotmail dot com
Hi and thanks for the feedback.

Uploading huge files was the first thing I tried (upload size limit set to 600MB and uploading a 500MB file from another network). Data returned _while_ uploading is an empty array.

If you need more info (PHP, nginx configuration files, ...) please let me know.
 [2012-05-10 09:15 UTC] luigifab at yahoo dot fr
Exactly the same problem with:
- Debian testing
- PHP 5.4.0-3 (testing)
- Apache 2 (Server API Apache 2.0 Handler) OR Lighttpd 1.4.30 (Server API CGI/FastCGI)

But, it works with:
- Debian testing
- PHP 5.4.3-1 (unstable)
- Apache 2 (Server API Apache 2.0 Handler)

And, does not work with:
- Debian testing
- PHP 5.4.3-1 (unstable)
- Lighttpd 1.4.30 (Server API CGI/FastCGI)

Tested with a file of 16 MB with default configuration (expected upload size).
- http://www.luigifab.info:8080/public/example/ (Apache and PHP 5.4.3-1)
- http://www.luigifab.info/public/example/ (Lighttpd and PHP 5.4.3-1)

http://packages.qa.debian.org/p/php5.html


Is upload progress work in CGI mode ?
Is upload progress work width PHP 5.4.0.0.0 or with PHP 5.4.0.0.1 ?
 [2012-05-18 21:10 UTC] luigifab at yahoo dot fr
Up ?
 [2012-06-01 10:12 UTC] luigifab at yahoo dot fr
Up ?

Because there are no new informations in http://fr.php.net/manual/en/session.upload-progress.php
 [2013-06-27 19:35 UTC] arpad@php.net
-Status: Open +Status: Feedback
 [2013-06-27 19:35 UTC] arpad@php.net
If you're still experiencing this please provide the values of all the session.upload_progress ini settings and a script to reproduce the bug.
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC