Closed XaaT closed 3 years ago
I've not tested in PHP 7.3 yet. Something on my list to attempt.
I'm setting up another environment using php7.0
apt install php7.0
root@ubuntu:/root# php -v PHP 7.0.33-0ubuntu0.16.04.3 (cli) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.33-0ubuntu0.16.04.3, Copyright (c) 1999-2017, by Zend Technologie
wget https://github.com/jgm/pandoc/releases/download/2.0.2/pandoc-2.0.2-1-amd64.deb
dpkg -i pandoc-2.0.2-1-amd64.deb
root@ubuntu:/root# pandoc --version pandoc 2.0.2 Compiled with pandoc-types 1.17.3, texmath 0.10, skylighting 0.4.3.2
apt install composer
Composer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27 16:00:34
composer update --no-dev
@ git directoryFirst run :
user@ubuntu:~/work/mediawiki-to-gfm$ ./convert.php --filename=./sysadmin-20190408141537.xml --output=./sortie PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /home/user/work/mediawiki-to-gfm/app/src/Convert.php:282 Stack trace:
0 /home/user/work/mediawiki-to-gfm/app/src/Convert.php(102): App\Convert->loadData('<mediawiki ns="...')
1 /home/user/work/mediawiki-to-gfm/convert.php(49): App\Convert->run()
2 {main}
thrown in /home/user/work/mediawiki-to-gfm/app/src/Convert.php on line 282
Second run, after apt install php-xml
:
user@ubuntu:~/work/mediawiki-to-gfm$ ./convert.php --filename=./sysadmin-20190408141537.xml --output=./sortie Converted: ./sortie/AD_Role [...] Converted: ./sortie/Creation_compte
Error at "source" (line 213, column 1): unexpected end of input expecting "<"
^ Pandoc could not convert successfully, error code: 65. Tried to run the following command: /usr/bin/pandoc --from=mediawiki --to=gfm /tmp/pandoc5cab5e718531a
Edit : Wrong page, it's the next page that's crashing the script. Deleting
So it's running well (see previous edit) on PHP 7.3 without the faulty entry.
Environment (Debian Sid)
sudo apt install php7.3
(l'occasion de tester si PHP 7.3 supporte bien le script user@xat:~/work/projects/markdown$ php -v PHP 7.3.3-1 (cli) (built: Mar 7 2019 19:43:34) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.3-1, Copyright (c) 1999-2018, by Zend Technologiessudo apt install pandoc
user@xat:~/work/projects/markdown$ pandoc -v pandoc 2.2.1 Compiled with pandoc-types 1.17.5.1, texmath 0.11.1, skylighting 0.7.5sudo apt install git
user@xat:~/work/projects/markdown$ git version git v ersion 2.20.1sudo apt install composer
user@xat:~/work/projects/markdown$ composer -V Composer 1.8.4 2019-02-11 10:52:10sudo apt install phpunit
user@xat:~/work/projects/markdown/mediawiki-to-gfm$ phpunit -V PHPUnit 7.5.6 by Sebastian Bergmann and contributors.Error
I'll try to use php 7.2