[php-maint] Bug#820475: Bug#820475: php7.0: php5 to php7.0 regression: undefined function xml_parser_create()

Ondřej Surý ondrej at sury.org
Sat Apr 9 05:52:28 UTC 2016


Do you have: `apt-get install php-xml` installed?

-- 
Ondřej Surý <ondrej at 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 at 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 at 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 at sid:~# a2dismod php7.0
> Module php7.0 disabled.
> To activate the new configuration, you need to run:
>   service apache2 restart
> root at sid:~# a2enmod php5
> Enabling module php5.
> To activate the new configuration, you need to run:
>   service apache2 restart
> root at sid:~# service apache2 restart
> 
> <some calls to get the authentication into the cookie file>
> 
> root at 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 at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



More information about the pkg-php-maint mailing list