php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59096 APC upload progress doesn't work
Submitted: 2010-03-03 11:27 UTC Modified: 2016-11-18 20:54 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bauglir at bauglir dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.2.8 OS: Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bauglir at bauglir dot com
New email:
PHP Version: OS:

 

 [2010-03-03 11:27 UTC] bauglir at bauglir dot com
Description:
------------
Cannot make upload progress work with APC, APC for regular 
variables works

Reproduce code:
---------------
apc is compiled as

./configure --enable-apc --with-php-config=/usr/local/bin/php-config


----------------- FROM PHPINFO--------------
APC Support	enabled
Version	3.0.19
MMAP Support	Enabled
MMAP File Mask	/tmp/php_tmp_upload/apc.iM3OCz
Locking type	pthread mutex Locks
Revision	$Revision: 3.154.2.5 $
Build Date	Mar 3 2010 03:44:44

Directive	Local Value	Master Value
apc.cache_by_default	On	On
apc.coredump_unmap	Off	Off
apc.enable_cli	On	On
apc.enabled	On	On
apc.file_update_protection	2	2
apc.filters	no value	no value
apc.gc_ttl	3600	3600
apc.include_once_override	Off	Off
apc.max_file_size	100M	100M
apc.mmap_file_mask	/tmp/php_tmp_upload/apc.iM3OCz	/tmp/php_tmp_upload/apc.iM3OCz
apc.num_files_hint	1024	1024
apc.report_autofilter	Off	Off
apc.rfc1867	On	On
apc.rfc1867_freq	100K	100K
apc.rfc1867_name	APC_UPLOAD_PROGRESS	APC_UPLOAD_PROGRESS
apc.rfc1867_prefix	upload_	upload_
apc.shm_segments	1	1
apc.shm_size	33	33
apc.slam_defense	0	0
apc.stat	On	On
apc.stat_ctime	Off	Off
apc.ttl	7200	7200
apc.user_entries_hint	4096	4096
apc.user_ttl	7200	7200
apc.write_lock	On	On
----------------------------------

----------- FROM PHP.INI----------------
upload_max_filesize = 200M
upload_max_size= 200M
post_max_size = 201M

upload_tmp_dir = /tmp/php_tmp_upload

extension="apc.so"
[APC]
apc.rfc1867 = on
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=33
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/php_tmp_upload/apc.XXXXXX
apc.enable_cli=1
apc.max_file_size = 100M
apc.rfc1867_freq = 100K
------------------------------------------------



mainform
http://tools.bauglir.com/apc/progress_t.php

iframe source
http://tools.bauglir.com/apc/upload_t.php

get progress
http://tools.bauglir.com/apc/getprogress_t.php



Actual result:
--------------
from the getprogress.php I get all GET variables, as expected, 
abd $status as (bool)false

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-03 11:45 UTC] bauglir at bauglir dot com
To add:no apc file is created in /tmp/php_tmp_upload/ during 
upload, onlu regulat temporaty upload file (meaning 
$_FILES['tmp_name'] file)
 [2010-03-03 11:53 UTC] rasmus@php.net
Could you add the output of:

print_r(get_loaded_extensions());

to this bug please?  Only 1 extension can grab the upload 
hook, so another extension may be interfering.
 [2010-03-03 12:00 UTC] bauglir at bauglir dot com
Array ( [0] => xmlwriter [1] => libxml [2] => xmlrpc [3] => 
dom [4] => xmlreader [5] => xml [6] => tokenizer [7] => 
session [8] => pcre [9] => SimpleXML [10] => SPL [11] => PDO 
[12] => SQLite [13] => standard [14] => Reflection [15] => 
posix [16] => pdo_sqlite [17] => mysqli [18] => mbstring [19] 
=> json [20] => iconv [21] => hash [22] => gd [23] => filter 
[24] => date [25] => curl [26] => ctype [27] => zlib [28] => 
openssl [29] => cgi [30] => apc )
 [2010-03-03 14:07 UTC] rasmus@php.net
Are you using the Debian build with Suhosin enabled?  If so, 
trying disabling Suhosin.
 [2010-03-03 14:29 UTC] bauglir at bauglir dot com
I do not know how to retreive this information but "locate 
suhosin" returns nothing
 [2016-11-18 20:54 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 20:54 UTC] kalle@php.net
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC