packages: php/php.spec - rel 0.15 - move per-SAPI additional ini files to p...

Jan Rękorajski baggins w sith.mimuw.edu.pl
Pon, 15 Mar 2010, 00:37:35 CET


On Mon, 15 Mar 2010, Elan Ruusamäe wrote:

> On Thursday 11 March 2010 00:51:21 baggins wrote:
> > Author: baggins                      Date: Wed Mar 10 22:51:21 2010 GMT
> > Module: packages                      Tag: HEAD
> > ---- Log message:
> > - rel 0.15
> > - move per-SAPI additional ini files to per-SAPI config dirs
> > - added triggers to move configs on upgrade (should apache* triggers be
> > merged?)
> 
> no-no no!
> 
> fix the damn patch to process ini files in old way (ini file(s) and then ini dir(s))

Why? What's the point?
What's the problem with using a solution that's already there?
Why reinvent the wheel?

> and update spec todo when done:
> # - php CLI has safe mode enabled in default config (!!!), recheck default .ini configs?

That's just not true.

[baggins w home ~]$ grep -i safe_mode /etc/php/{*,}/*.ini 
/etc/php//php.ini:safe_mode = Off
/etc/php//php.ini:; then turn on safe_mode_gid.
/etc/php//php.ini:safe_mode_gid = Off
/etc/php//php.ini:; When safe_mode is on, UID/GID checks are bypassed when
/etc/php//php.ini:safe_mode_include_dir =
/etc/php//php.ini:; When safe_mode is on, only executables located in the safe_mode_exec_dir
/etc/php//php.ini:safe_mode_exec_dir =
/etc/php//php.ini:safe_mode_allowed_env_vars = PHP_
/etc/php//php.ini:; protected even if safe_mode_allowed_env_vars is set to allow to change them.
/etc/php//php.ini:safe_mode_protected_env_vars = LD_LIBRARY_PATH
/etc/php//php.ini:sql.safe_mode = Off

> #   main php.ini is not loaded at all (at least for cli):
> #   strace -efile php -m 2>&1 | grep /etc/php/php.ini

Neither this is.

[baggins w home ~]$ strace -efile php.cli -m 2>&1 | grep /etc/php/php.ini
lstat("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=65441, ...}) = 0
open("/etc/php/php.ini", O_RDONLY)      = 3
lstat("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=65441, ...}) = 0
[baggins w home ~]$ strace -efile php.cgi -m 2>&1 | grep /etc/php/php.ini
lstat("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=65441, ...}) = 0
open("/etc/php/php.ini", O_RDONLY)      = 3
lstat("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=65441, ...}) = 0
[baggins w home ~]$ strace -efile php.fcgi -m 2>&1 | grep /etc/php/php.ini
lstat("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=65441, ...}) = 0
open("/etc/php/php.ini", O_RDONLY)      = 3
lstat("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=65441, ...}) = 0
[baggins w home ~]$ rpm -q php-common
php-common-5.3.2-0.15.x86_64

-- 
Jan Rękorajski            |  ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl   |  OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC              |                   -- TROOPS by Kevin Rubio


Więcej informacji o liście dyskusyjnej pld-devel-pl