# Problems with APC

- Thread: https://externals.io/message/25434
- Original archive: https://news-web.php.net/php.internals/25434
- Started by Sara Golemon on 2006-08-27T19:16:40+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

---

## #25434 — Sara Golemon — 2006-08-27T19:16:40+00:00

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

> I get a segfault with PHP 5.2.0RC2 in
 > CLI mode (Apache module seems to work)
 > and APC 3.0.11 (without APC it works
 > fine). Is this a known problem (maybe
 > even fixed in CVS) or is it worth
 > investigating?
 >
Yes, it's a known problem.

http://blog.libssh2.org/index.php?/archives/20-Doctor!-Doctor!-It-hurts-when-I-do-this!.html

But it's an EXTREMELY edge case one. (Only happens with ZTS enabled, in 
CLI mode, with enable_cli *not* turned on).

I came across this some time ago when mixing Runkit_Sandbox with APC, 
just turn on enable_cli.  It won't materially impact your command line 
experience.

-Sara

---

## #25436 — Jared Williams — 2006-08-28T18:00:56+00:00

URL: https://externals.io/message/25434#25436 · In reply to: #25434

> -----Original Message-----
> From: Sara Golemon [mailto:pollita@php.net] 
> Sent: 27 August 2006 20:17
> To: internals@lists.php.net; cschneid@cschneid.com; rasmus@lerdorf.com
> Subject: [PHP-DEV] Problems with APC
> 
> > […]
> Yes, it's a known problem.
> 
> http://blog.libssh2.org/index.php?/archives/20-Doctor!-Doctor!
> -It-hurts-when-I-do-this!.html
> 
> But it's an EXTREMELY edge case one. (Only happens with ZTS 
> enabled, in 
> CLI mode, with enable_cli *not* turned on).
> 
> I came across this some time ago when mixing Runkit_Sandbox with APC, 
> just turn on enable_cli.  It won't materially impact your 
> command line 
> experience.

PHP 5.1.6  & APC 3.0.11-dev crashes on shutdown irrespective of
apc.enable_cli.

Jared


apc

APC Support => enabled
Version => 3.0.11-dev
MMAP Support => Disabled
Revision => $Revision: 3.90 $
Build Date => May  4 2006 00:20:07

Directive => Local Value => Master Value
apc.cache_by_default => On => On
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.max_file_size => 1M => 1M
apc.num_files_hint => 1000 => 1000
apc.optimization => Off => Off
apc.shm_segments => 1 => 1
apc.shm_size => 30 => 30
apc.slam_defense => Off => Off
apc.stat => On => On
apc.ttl => 0 => 0
apc.user_entries_hint => 100 => 100
apc.user_ttl => 0 => 0
