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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 03:01:35 2025 UTC