|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56198 apc break cli again
Submitted: 2004-09-24 09:48 UTC Modified: 2004-09-25 15:36 UTC
From: xuefer at 21cn dot com Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: xuefer at 21cn dot com
New email:
PHP Version: OS:


 [2004-09-24 09:48 UTC] xuefer at 21cn dot com
with lastest CVS
echo > a.php
php a.php

[Fri Sep 24 21:46:58 2004] [apc-warning] (apc_cache_make_file_entry) unable to cache '(null)': insufficient shared memory available

extension =
apc.shm_size = 30
apc.shm_segments = 2
apc.enabled = 1
apc.optimization = 1
apc.ttl = 3600
apc.num_files_hint = 10000

it's not a simple task to separate php.ini for cli/web-server
cli have h->opened_path==NULL :(


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-24 14:19 UTC]
Why is it not a simple task?

#!/usr/local/bin/php -c /some/path

This doesn't seem hard to me.  You really should have a separate cli php.ini.
 [2004-09-24 14:36 UTC]
A fix for this particular case is in CVS, but if you build against Apache it won't work in CLI anyway.  You really need a separate php-cli.ini file.
 [2004-09-24 21:38 UTC] xuefer at 21cn dot com
we can't do #!/usr/local/bin/php -c /some/path

pls have a look at bug:
 [2004-09-25 15:36 UTC]
Works just fine on Linux.

#!/usr/local/bin/php -c.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 04:01:28 2024 UTC