# Should "apc.slam_defence" and "apc.write_lock" be turned on at the same time?

- Thread: https://externals.io/message/63577
- Original archive: https://news-web.php.net/php.internals/63577
- Started by Jason Gu on 2012-10-21T08:26:49+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #63577 — Jason Gu — 2012-10-21T08:26:49+00:00

URL: https://externals.io/message/63577#63577

Hi Internals

I wondering if "apc.slam_defence" and "apc.write_lock" should be turned 
on at the same time?

The default for APC v3.1.13 have both settings turned on.

But the documentation says "apc.slam_defence is Deprecated by 
apc.write_lock."

http://www.php.net/manual/en/apc.configuration.php#ini.apc.slam-defense

So I'd like to know how should the settings be configured?

Thanks

---

## #66062 — Ferenc Kovacs — 2013-02-20T17:42:14+00:00

URL: https://externals.io/message/63577#66062 · In reply to: #63577

> Hi Internals
>
> I wondering if "apc.slam_defence" and "apc.write_lock" should be turned on
> at the same time?
>
> The default for APC v3.1.13 have both settings turned on.
>
> But the documentation says "apc.slam_defence is Deprecated by
> apc.write_lock."
>
> http://www.php.net/manual/en/**apc.configuration.php#ini.apc.**
> slam-defense<http://www.php.net/manual/en/apc.configuration.php#ini.apc.slam-defense>
>
> So I'd like to know how should the settings be configured?
>
> Thanks
>
> --
> 
> 
>
>
from a quick look and based on the documentation I think that the default
values should be changed as there is no reason to have the slam_defense
enabled, and on a related note the docs refer to this section as
slam_defense being an integer which controls a percentage (so valid values
are between 0 and 100) while the code seems to parse and store this as a
boolean value.
could somebody look into this and clarify the docs maybe?


-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu
