[php-maint] Bug#715264: Bug#715264: php5-common: maxlifetime output warning if pcntl extension is enabled in /etc/php5/${sapi}/php.ini
Yann Autissier
yann at autissier.net
Mon Jul 8 06:55:25 UTC 2013
Hi Ondrej,
The bug should still occurs with separated conf.d for all sapi configurations.
On my messed system, the php-cli does not print any warning when used with its
own /etc/php5/cli/php.ini default configuration file.
The problem comes only in the maxlifetime command, that forces the use of a
specific sapi configuration file like that :
php -c /etc/apache2/${sapi}/php.ini ...
I think we should not use the php-cli command with a sapi configuration file.
Regards,
Yann
Le 08/07/2013 08:09, Ondřej Surý a écrit :
> Control: severity -1 minor
> Control: tags -1 +wontfix
> Control: block -1 by 505743
>
> Hi Yann,
>
> I am sorry, but if you mess your system, you are basically on your own.
>
> This bug will be fixed when we fix 505743, which should happen in jessie lifecycle.
>
> Ondrej
>
>
> On Sun, Jul 7, 2013 at 3:19 PM, Yann Autissier <yann+bts at autissier.net
> <mailto:yann+bts at autissier.net>> wrote:
>
> Package: php5-common
> Version: 5.5.0+dfsg-6
> Severity: normal
> Tags: patch
>
> Dear Maintainer,
>
> After a manual installation of the pcntl extension, I have enabled this
> extension only in the /etc/php5/apache2/php.ini configuration file, since
> the php-cli has built-in support for pcntl.
> Enabling pcntl extension in a generic configuration file like
> /etc/php5/conf.d/pcntl.ini throws following warning when using php cli :
> PHP Warning: Module 'pcntl' already loaded in Unknown on line 0
>
> The 'maxlifetime' command forces the /etc/php5/apache2/php.ini configuration
> file with the php cli command.
> This outputs the warning to stderr, which is sent by email each time the
> /etc/cron.d/php5 crontab fragment is called.
> We may redirect the stderr of php command to /dev/null, or simply not use
> the php command at all.
>
> Attached patch provides the second solution.
>
> -- System Information:
> Debian Release: jessie/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (500, 'testing'), (500, 'oldstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.2.0-4-amd64 (SMP w/16 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages php5-common depends on:
> ii dpkg 1.16.10
> ii libc6 2.17-7
> ii lsof 4.86+dfsg-1
> ii psmisc 22.20-1
> ii sed 4.2.2-1
> ii ucf 3.0027+nmu1
>
> Versions of packages php5-common recommends:
> ii php5-json 0~git~1+c05ebf+dfsg-2
>
> Versions of packages php5-common suggests:
> pn php5-user-cache <none>
>
> -- no debconf information
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> <mailto:pkg-php-maint at lists.alioth.debian.org>
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
>
>
>
>
> --
> Ondřej Surý <ondrej at sury.org <mailto:ondrej at sury.org>>
More information about the pkg-php-maint
mailing list