Debian Bug report logs - #820475
php7.0: php5 to php7.0 regression: undefined function xml_parser_create()

version graph

Package: php7.0; Maintainer for php7.0 is Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>; Source for php7.0 is src:php7.0 (PTS, buildd, popcon).

Reported by: Paul Gevers <elbrus@debian.org>

Date: Fri, 8 Apr 2016 19:09:04 UTC

Severity: normal

Found in version php7.0/7.0.5-2

Done: Paul Gevers <elbrus@debian.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, elbrus@debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#820475; Package php7.0. (Fri, 08 Apr 2016 19:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Gevers <elbrus@debian.org>:
New Bug report received and forwarded. Copy sent to elbrus@debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 08 Apr 2016 19:09:07 GMT) (full text, mbox, link).


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

From: Paul Gevers <elbrus@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php7.0: php5 to php7.0 regression: undefined function xml_parser_create()
Date: Fri, 08 Apr 2016 21:06:00 +0200
Package: php7.0
Version: 7.0.5-2
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

In my effort to test my package cacti against php7.0 I found the following
regression. With php5 the page http://localhost/cacti/graphs_new.php works fine
and as expected, with php7.0 I get a 500 Internal Server error response due to
undefined function xml_parser_create. As far as I dived into this, php could
just support that and as the Debian package has done so for an extremely long
time, I think it is a regression not to do so with php7.0.

root@sid:~# wget $loadSaveCookie http://localhost/cacti/graphs_new.php--2016-04-08 20:57:19--  http://localhost/cacti/graphs_new.php
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2016-04-08 20:57:20 ERROR 500: Internal Server Error.

root@sid:~# tail -n1 /var/log/apache2/error.log 
[Fri Apr 08 20:57:20.116589 2016] [:error] [pid 22899] [client ::1:60646] PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /usr/share/cacti/site/lib/xml.php:29\nStack trace:\n#0 /usr/share/cacti/site/lib/data_query.php(81): xml2array('<interface>\\n\\t<n...')\n#1 /usr/share/cacti/site/graphs_new.php(686): get_data_query_array('6')\n#2 /usr/share/cacti/site/graphs_new.php(49): graphs()\n#3 {main}\n  thrown in /usr/share/cacti/site/lib/xml.php on line 29

root@sid:~# a2dismod php7.0
Module php7.0 disabled.
To activate the new configuration, you need to run:
  service apache2 restart
root@sid:~# a2enmod php5
Enabling module php5.
To activate the new configuration, you need to run:
  service apache2 restart
root@sid:~# service apache2 restart

<some calls to get the authentication into the cookie file>

root@sid:~# wget $loadSaveCookie http://localhost/cacti/graphs_new.php
- --2016-04-08 21:03:44--  http://localhost/cacti/graphs_new.php
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'graphs_new.php.1'

graphs_new.php.1                       [ <=>                                                           ]  15.18K  --.-KB/s    in 0s      

2016-04-08 21:03:45 (93.9 MB/s) - 'graphs_new.php.1' saved [15546]


- -- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (50, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJXCAETAAoJEJxcmesFvXUK1o4H/03juLm753bB/yF6wO50Csjz
gDZFbUshSi8cMkVsKlU3grsS5VKjfhZ2/sQKry4+J/cWEKmOG1IRX+aBXJH7JqG2
jkVVHLQI5vV1rFPu+DwFL2NHCEBwBiSOIdB9L/nYkWqbNzHCApff53y4JXnDtIue
FqP2THE53AACvn3cAUFLiB8kILSAikHS/o1ugHNsBy/qu4IkO83oZgPY+9LnlHBH
YmXpVT3CXzhNleuEio9OCyOEany1MEUuWlLG8zeNbYazIjbsC1pcBJKDRbJxPvK8
1aV+I1+Jout7OT4I+HVUGMxwXXzSfanaxCp1EAeXhE+ajwV7AvO88W48/zehqUo=
=1OZQ
-----END PGP SIGNATURE-----



Reply sent to Paul Gevers <elbrus@debian.org>:
You have taken responsibility. (Fri, 08 Apr 2016 19:45:23 GMT) (full text, mbox, link).


Notification sent to Paul Gevers <elbrus@debian.org>:
Bug acknowledged by developer. (Fri, 08 Apr 2016 19:45:23 GMT) (full text, mbox, link).


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

From: Paul Gevers <elbrus@debian.org>
To: 820475-done@bugs.debian.org
Subject: Invalid: php7.0: php5 to php7.0 regression: undefined function xml_parser_create()
Date: Fri, 8 Apr 2016 21:41:56 +0200
[Message part 1 (text/plain, inline)]
Thanks to Steve Langasek (on #ubuntu-devel) I learned that this is on
purpose and this is now put into php-xml. So cacti just needs an
additional dependency on php-xml (confirmed).

Sorry for the noise.

Paul

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#820475; Package php7.0. (Sat, 09 Apr 2016 05:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sat, 09 Apr 2016 05:57:05 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: Paul Gevers <elbrus@debian.org>, Debian Bug Tracking System <820475@bugs.debian.org>
Subject: Re: [php-maint] Bug#820475: php7.0: php5 to php7.0 regression: undefined function xml_parser_create()
Date: Sat, 09 Apr 2016 07:52:28 +0200
Do you have: `apt-get install php-xml` installed?

-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server

On Fri, Apr 8, 2016, at 21:06, Paul Gevers wrote:
> Package: php7.0
> Version: 7.0.5-2
> Severity: normal
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> In my effort to test my package cacti against php7.0 I found the
> following
> regression. With php5 the page http://localhost/cacti/graphs_new.php
> works fine
> and as expected, with php7.0 I get a 500 Internal Server error response
> due to
> undefined function xml_parser_create. As far as I dived into this, php
> could
> just support that and as the Debian package has done so for an extremely
> long
> time, I think it is a regression not to do so with php7.0.
> 
> root@sid:~# wget $loadSaveCookie
> http://localhost/cacti/graphs_new.php--2016-04-08 20:57:19-- 
> http://localhost/cacti/graphs_new.php
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:80... connected.
> HTTP request sent, awaiting response... 500 Internal Server Error
> 2016-04-08 20:57:20 ERROR 500: Internal Server Error.
> 
> root@sid:~# tail -n1 /var/log/apache2/error.log 
> [Fri Apr 08 20:57:20.116589 2016] [:error] [pid 22899] [client ::1:60646]
> PHP Fatal error:  Uncaught Error: Call to undefined function
> xml_parser_create() in /usr/share/cacti/site/lib/xml.php:29\nStack
> trace:\n#0 /usr/share/cacti/site/lib/data_query.php(81):
> xml2array('<interface>\\n\\t<n...')\n#1
> /usr/share/cacti/site/graphs_new.php(686): get_data_query_array('6')\n#2
> /usr/share/cacti/site/graphs_new.php(49): graphs()\n#3 {main}\n  thrown
> in /usr/share/cacti/site/lib/xml.php on line 29
> 
> root@sid:~# a2dismod php7.0
> Module php7.0 disabled.
> To activate the new configuration, you need to run:
>   service apache2 restart
> root@sid:~# a2enmod php5
> Enabling module php5.
> To activate the new configuration, you need to run:
>   service apache2 restart
> root@sid:~# service apache2 restart
> 
> <some calls to get the authentication into the cookie file>
> 
> root@sid:~# wget $loadSaveCookie http://localhost/cacti/graphs_new.php
> - --2016-04-08 21:03:44--  http://localhost/cacti/graphs_new.php
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [text/html]
> Saving to: 'graphs_new.php.1'
> 
> graphs_new.php.1                       [ <=>                             
>                              ]  15.18K  --.-KB/s    in 0s      
> 
> 2016-04-08 21:03:45 (93.9 MB/s) - 'graphs_new.php.1' saved [15546]
> 
> 
> - -- System Information:
> Debian Release: 8.4
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable'), (50,
>   'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> 
> iQEcBAEBCAAGBQJXCAETAAoJEJxcmesFvXUK1o4H/03juLm753bB/yF6wO50Csjz
> gDZFbUshSi8cMkVsKlU3grsS5VKjfhZ2/sQKry4+J/cWEKmOG1IRX+aBXJH7JqG2
> jkVVHLQI5vV1rFPu+DwFL2NHCEBwBiSOIdB9L/nYkWqbNzHCApff53y4JXnDtIue
> FqP2THE53AACvn3cAUFLiB8kILSAikHS/o1ugHNsBy/qu4IkO83oZgPY+9LnlHBH
> YmXpVT3CXzhNleuEio9OCyOEany1MEUuWlLG8zeNbYazIjbsC1pcBJKDRbJxPvK8
> 1aV+I1+Jout7OT4I+HVUGMxwXXzSfanaxCp1EAeXhE+ajwV7AvO88W48/zehqUo=
> =1OZQ
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 07 May 2016 07:34:08 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: Sat Jan 6 20:55:40 2018; 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.