php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57908 APC_FETCH returns false
Submitted: 2007-11-13 17:16 UTC Modified: 2008-02-02 00:17 UTC
From: pedrofuentes at gmail dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.0 OS: Linux 2.6.18-5-686
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pedrofuentes at gmail dot com
New email:
PHP Version: OS:

 

 [2007-11-13 17:16 UTC] pedrofuentes at gmail dot com
Description:
------------
i develope a progress bar so i start the upload but it returns always false until the upload is finished, i check if apc.kuTxL6 exists during the upload but it doesn't.

Using:

Debian etch
Linux 2.6.18-5-686
PHP 5.2.0
APC 3.0.15

apc.cache_by_default	On	On
apc.enable_cli	On	On
apc.enabled	On	On
apc.file_update_protection	0	0
apc.filters	no value	no value
apc.gc_ttl	3600	3600
apc.include_once_override	Off	Off
apc.localcache	Off	Off
apc.localcache.size	512	512
apc.max_file_size	1M	1M
apc.mmap_file_mask	/tmp/apc.kuTxL6	/tmp/apc.kuTxL6
apc.num_files_hint	1024	1024
apc.report_autofilter	Off	Off
apc.rfc1867	On	On
apc.rfc1867_freq	0	0
apc.rfc1867_name	APC_UPLOAD_PROGRESS	APC_UPLOAD_PROGRESS
apc.rfc1867_prefix	upload_	upload_
apc.shm_segments	1	1
apc.shm_size	128	128
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

Reproduce code:
---------------
$status = apc_fetch('upload_'.$_GET['progress_key']);
echo json_encode($status);

Expected result:
----------------
{"total":117974,"current":117974,"rate":240176.604,"filename":"","name":"","cancel_upload":0,"done":1,"start_time":1194991760}

Actual result:
--------------
false

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-13 17:17 UTC] pedrofuentes at gmail dot com
Apache 2.0
 [2008-01-29 21:36 UTC] shire@php.net
Could you please send the HTML source code for your upload form as well?  please check that this contains the hidden form element named APC_UPLOAD_PROGRESS before the file entity as described in the INSTALL file included with APC.
 [2008-02-02 00:17 UTC] pedrofuentes at gmail dot com
it's now ok with 3.0.16, thanks !
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 29 01:01:26 2024 UTC