|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56224 command line PHP crashes when apc loaded
Submitted: 2004-11-04 06:25 UTC Modified: 2004-11-04 18:06 UTC
From: kavan at jamu dot cz Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 4.3.3 OS: linux
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: kavan at jamu dot cz
New email:
PHP Version: OS:


 [2004-11-04 06:25 UTC] kavan at jamu dot cz
There is a problem with latest CVS APC. Whenever I try to run php from command line (not invoked via apache) it segfaults.

If I turn off the cache it works. 



Shared memory settings

echo "2147483648" > /proc/sys/kernel/shmmax
echo "2097152" > /proc/sys/kernel/shmall

Reproduce code:

Expected result:
running php

Actual result:
Segmantation fault. (no core dump)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-04 18:06 UTC]
There isn't much point in using apc from command line php.  Maintain a separate php.ini file for your command line php.
This will eventually be fixed, but for now I chose to speed up apc under Apache by saving a time() call by fetching the
current request time directly from Apache.  This breaks CLI until the SAPI call I added to PHP5 either gets backported or apc moves to PHP5.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 12:01:32 2024 UTC