Debian Bug report logs - #443390
php5-cgi: -c config file settings overriden by global config

version graph

Package: php5-cgi; Maintainer for php5-cgi is (unknown);

Reported by: CaT <cat@zip.com.au>

Date: Fri, 21 Sep 2007 01:03:02 UTC

Severity: normal

Found in version php5/5.2.0-8+etch7

Fixed in version 5.2.6.dfsg.1-1+lenny4

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#443390; Package php5-cgi. (full text, mbox, link).


Acknowledgement sent to CaT <cat@zip.com.au>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: CaT <cat@zip.com.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-cgi: -c config file settings overriden by global config
Date: Fri, 21 Sep 2007 11:00:12 +1000
Package: php5-cgi
Version: 5.2.0-8+etch7
Severity: normal


It would appear that php5-cgi reads the file specified by -c first,
parses it and then follows it up with the global config files
(/etc/php5/...). The end effect of this is that there is no way to
override the globals for, say, some site or some other use via this
option and as such makes it rather useless.

I confirmed this by running php5-cgi -c ... first and verifying the
config reported by phpinfo(). None of the desired changes were
registered. I then did an mv /etc/php5 /etc/php5.old and ran php5-cgi -c
... again and verified. The desired changes were present then.

I believe simply switching the order the config files are read/parsed 
in would fix this.

-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22.1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)




Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 08 Jan 2010 16:18:07 GMT) (full text, mbox, link).


Notification sent to CaT <cat@zip.com.au>:
Bug acknowledged by developer. (Fri, 08 Jan 2010 16:18:07 GMT) (full text, mbox, link).


Message #10 received at 443390-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 443390-done@bugs.debian.org
Subject: #443390: php5-cgi: -c config file settings overriden by global config
Date: Fri, 8 Jan 2010 17:12:49 +0100
Version: 5.2.6.dfsg.1-1+lenny4

root@howl:/tmp# grep memory_limit /etc/php5/cli/php.ini
memory_limit = 32M      ; Maximum amount of memory a script may consume (32MB)
root@howl:/tmp# cat php.ini
memory_limit = 64M      ; Maximum amount of memory a script may consume (32MB)
root@howl:/tmp# php5 -c php.ini -r 'phpinfo();' | grep memory
memory_limit => 64M => 64M

-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 06 Feb 2010 07:36:00 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:06:28 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.