php.net |  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
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:
10 + 49 = ?
Subscribe to this entry?

 
 [2004-09-24 09:48 UTC] xuefer at 21cn dot com
Description:
------------
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.so
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 :(


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-24 14:19 UTC] Rasmus@php.net
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] Rasmus@php.net
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: http://bugs.php.net/bug.php?id=29658
 [2004-09-25 15:36 UTC] Rasmus@php.net
Works just fine on Linux.

#!/usr/local/bin/php -c.
<?php
  ...
?>
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Oct 23 00:01:31 2019 UTC