aichingm / rfc2epub

rfc2epub - create an epub ebook from an IETF RFC
Other
20 stars 2 forks source link

Does it work with php 7.2? #1

Closed gudata closed 2 years ago

gudata commented 5 years ago

Hi, I did

sudo apt install php7.2 php7.2-xml php7.2-curl php7.2-zip

but I still get

php rfc2epub rfc6750 rfc6750.epub

PHP Warning:  DOMDocument::loadHTML(): Empty string supplied as input in /home/guda/rfc/rfc2epub/rfc2epub on line 212
PHP Notice:  Trying to get property 'childNodes' of non-object in /home/guda/rfc/rfc2epub/rfc2epub on line 220
PHP Notice:  Trying to get property 'length' of non-object in /home/guda/rfc/rfc2epub/rfc2epub on line 220
PHP Fatal error:  Uncaught Error: Call to a member function appendChild() on null in /home/guda/rfc/rfc2epub/rfc2epub:250
Stack trace:
#0 {main}
  thrown in /home/guda/rfc/rfc2epub/rfc2epub on line 250

Is this because of the php version?

aichingm commented 5 years ago

@gudata Yes it works with php 7.2 (and 7.3). But your input is not as expected (maybe it should warn about this):

Drop the "rfc" from the number (the first argument), like so: php rfc2epub 6750 rfc6750.epub this should work!