php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66586 apc_clear_cache parameter not found
Submitted: 2014-01-27 12:54 UTC Modified: 2014-02-01 09:01 UTC
From: hajo at csphere dot eu Assigned: ab (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.4.24 OS: Windows 7
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: hajo at csphere dot eu
New email:
PHP Version: OS:

 

 [2014-01-27 12:54 UTC] hajo at csphere dot eu
Description:
------------
the old apc extension has one paramter as it could be seen here:

http://php.net/apc_clear_cache

while apcu does not support it which leads to a warning like this one:

function expected 0 parameters but 1 given


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-27 13:38 UTC] hajo at csphere dot eu
well this is funny, reflection tells me there is one parameter, but it is named "info" instead of "cache_type". in addition this issue seems to only affect apcu 401 as i can't reproduce it with 402.

403 is currently not able to run, see my other bug report on that topic.
 [2014-01-28 17:26 UTC] krakjoe@php.net
-Status: Open +Status: Feedback
 [2014-01-28 17:26 UTC] krakjoe@php.net
Can you check again, 4.0.3 should build now ?

I'll await feedback ...
 [2014-01-28 17:43 UTC] hajo at csphere dot eu
-Status: Feedback +Status: Open
 [2014-01-28 17:43 UTC] hajo at csphere dot eu
problem seems fixed, but the parameter name is not cache_type as in apc, it changed from info in 401 to cache in 402 as i said before.

i don't know how important that might be, i gave up checking it since i hate reflection in production code and increased the apcu requirement to 403 in my project.

besides that the 403 builds that can be found here are still broken:
http://windows.php.net/downloads/pecl/releases/apcu/4.0.3
md5 and crc of the files are still the same as in the defect version.
you mentioned that they would've been replaced on the same day:
https://bugs.php.net/bug.php?id=66585
 [2014-01-28 18:27 UTC] krakjoe@php.net
-Assigned To: +Assigned To: ab
 [2014-01-28 18:27 UTC] krakjoe@php.net
Assigning to someone on the windows team ... @weltling, can I get that release rebuilt please ?
 [2014-02-01 09:01 UTC] krakjoe@php.net
-Status: Assigned +Status: Closed
 [2014-02-01 09:01 UTC] krakjoe@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

The extension was rebuilt yesterday by the windows build system and is now available online ...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 16:01:33 2025 UTC