php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72728 apc.shm_size is not an integer
Submitted: 2016-08-01 15:22 UTC Modified: 2016-08-01 16:18 UTC
From: phpnet at cabillot dot eu Assigned: cmb (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: Irrevelant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 + 47 = ?
Subscribe to this entry?

 
 [2016-08-01 15:22 UTC] phpnet at cabillot dot eu
Description:
------------
From http://php.net/manual/en/apcu.configuration.php#ini.apcu.shm-size, apc.shm_size should be an integer.

If you put an integer in your configuration you get :
$ php -d apc.shm_size=1 -v
PHP Warning:  PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0
[...]

So I think the documentation need an update, apc.shm_size is a string and the suffixes should be mentioned.

Julien


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-01 15:42 UTC] requinix@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: APC
 [2016-08-01 15:42 UTC] requinix@php.net
The change dates back to 2009 (when it was still APC).
http://git.php.net/?p=pecl/caching/apc.git;a=commit;h=93b8810953e340895c5e376a955c5f11ae25e999

No surprise that APC's docs are also incorrect.
http://php.net/manual/en/apc.configuration.php#ini.apc.shm-size
 [2016-08-01 16:17 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339761
Log: Fix #72728: apc.shm_size is not an integer
 [2016-08-01 16:18 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2016-08-01 16:18 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=1ca4b8c7529b569121224b9864f3da0f5212d71d
Log: Fix #72728: apc.shm_size is not an integer
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 06:01:29 2024 UTC