[pkg-php-pear] Bug#877513: php-markdown: Not working in PHP7 for deprecated Markdown_Parser construct

Valerio Bozzolan valerio.bozzolan at gmail.com
Mon Oct 2 13:08:42 UTC 2017


Package: php-markdown
Version: 1.6.0-2
Severity: normal

Dear Maintainer,

I noticed that this library can't be used as-is in PHP7 (shipped with actual Debian stable Stretch) because of it throws a PHP warning:

> Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Markdown_Parser has a deprecated constructor in /usr/share/php/markdown.php on line 191.

I don't know why there was that Java-like construct, anyway this is yet reported and fixed upstream:
https://github.com/michelf/php-markdown/issues/235

Just sobstituting 'function Markdown_Parser' to `function __construct` would be fine.

Thanks for your time :)



More information about the pkg-php-pear mailing list