Debian Bug report logs -
#652872
php5-cli: Configuration file includes deprecated option 'register_long_arrays'
Reported by: Paul Waring <paul@xk7.net>
Date: Wed, 21 Dec 2011 09:49:22 UTC
Severity: normal
Found in version php5/5.3.8.0-1
Fixed in version 5.4.0~beta2-1
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, paul@xk7.net, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#652872; Package php5-cli.
(Wed, 21 Dec 2011 09:49:25 GMT) (full text, mbox, link).
Acknowledgement sent
to Paul Waring <paul@xk7.net>:
New Bug report received and forwarded. Copy sent to paul@xk7.net, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Wed, 21 Dec 2011 09:49:33 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-cli
Version: 5.3.8.0-1+b1
Severity: normal
After upgrading from lenny to squeeze, I noticed the following error in my PHP scripts which are run on the command line:
PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown line 0
Looking at the file /etc/php5/cli/php.ini, it contains the following line:
register_long_arrays = Off
This warning will not affect users by default, but I have switched the warning level to E_ALL (default is E_ALL & ~E_DEPRECATED).
It is possible to remove this warning by editing php.ini and commenting out the register_long_arrays line, but that means changing a Debian-supplied configuration file and may cause conflicts with any future updates.
If this option was commented out in the Debian-supplied file, it would not affect users, since it is disabled/Off anyway, but it would prevent warnings for anyone who has switched on all errors. I also think it should be commented out with a view to being removed completely, because this option has been deprecated upstream and the PHP documentation explictly warns that 'relying on this feature is highly discouraged'.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-1-486
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5-cli depends on:
ii libbz2-1.0 1.0.6-1
ii libc6 2.13-21
ii libcomerr2 1.42-1
ii libdb5.1 5.1.25-11
ii libgssapi-krb5-2 1.10+dfsg~alpha1-6
ii libk5crypto3 1.10+dfsg~alpha1-6
ii libkrb5-3 1.10+dfsg~alpha1-6
ii libmagic1 5.09-2
ii libonig2 5.9.1-1
ii libpcre3 8.12-4
ii libqdbm14 1.8.78-1+b1
ii libssl1.0.0 1.0.0e-3
ii libxml2 2.7.8.dfsg-5
ii mime-support 3.51-1
ii php5-common 5.3.8.0-1+b1
ii tzdata 2011n-1
ii ucf 3.0025+nmu2
ii zlib1g 1:1.2.3.4.dfsg-3
php5-cli recommends no packages.
Versions of packages php5-cli suggests:
pn php-pear <none>
-- no debconf information
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Wed, 08 Feb 2012 19:24:07 GMT) (full text, mbox, link).
Notification sent
to Paul Waring <paul@xk7.net>:
Bug acknowledged by developer.
(Wed, 08 Feb 2012 19:24:07 GMT) (full text, mbox, link).
Message #10 received at 652872-done@bugs.debian.org (full text, mbox, reply):
Version: 5.4.0~beta2-1
Hi,
we have been using upstream supplied configuration files which
included this deprecated directive. As it was removed from PHP 5.4
it got fixed upstream. Marking as fixed in first PHP 5.4 version that
appeared in Debian.
O.
--
Ondřej Surý <ondrej@sury.org>
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#652872; Package php5-cli.
(Sat, 11 Feb 2012 09:57:14 GMT) (full text, mbox, link).
Acknowledgement sent
to Paul Waring <paul@xk7.net>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Sat, 11 Feb 2012 09:57:18 GMT) (full text, mbox, link).
Message #15 received at 652872@bugs.debian.org (full text, mbox, reply):
On 08/02/12 19:24, Debian Bug Tracking System wrote:
> This is an automatic notification regarding your Bug report
> which was filed against the php5-cli package:
>
> #652872: php5-cli: Configuration file includes deprecated option 'register_long_arrays'
>
> It has been closed by Ondřej Surý<ondrej@sury.org>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Ondřej Surý<ondrej@sury.org> by
> replying to this email.
Will 5.4 make it into Squeeze though? If not then the configuration file
is going to be broken (or at least include a deprecated option which
causes warnings) until the next full release.
Can the php.ini file not be patched to fix this, just as it is patched
to change the session path? I appreciate it's not Debian's fault that
upstream shipped a broken configuration file, but the fix is fairly simple.
--
Paul Waring
http://www.pwaring.com
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#652872; Package php5-cli.
(Sat, 11 Feb 2012 10:15:34 GMT) (full text, mbox, link).
Acknowledgement sent
to Lior Kaplan <kaplan@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Sat, 11 Feb 2012 10:15:36 GMT) (full text, mbox, link).
Message #20 received at 652872@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Sat, Feb 11, 2012 at 11:54 AM, Paul Waring <paul@xk7.net> wrote:
> Can the php.ini file not be patched to fix this, just as it is patched to
> change the session path? I appreciate it's not Debian's fault that upstream
> shipped a broken configuration file, but the fix is fairly simple.
>
Not really, as the default for this directive is "On", so removing or
commenting the line would actually turn this feature on instead of having
the warning disappear.
5.4 will not be in squeeze (maybe as a backport), but only wheezy will have
5.4 officially.
Kaplan
[Message part 2 (text/html, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 03 Apr 2012 07:49:44 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 00:29: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.