Re: New package: discount

From: Date: Sat, 08 Jan 2011 08:20:35 +0000
Subject: Re: New package: discount
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-7922@lists.php.net to get a copy of this message
On Sat, 08 Jan 2011 08:09:29 -0000, Bertrand Mansion <bmansion@mamasam.com> wrote:
Le 3 janv. 2011 à 05:54, Gustavo Lopes a écrit :
I'd like to propose a new package: discount The package is available at: <http://nebm.ist.utl.pt/~glopes/misc/discount-0.1.0.tar.gz>
Apparently, this url doesn't work anymore. I think there can be both a discount and a markdown packages since they have different interfaces.
Sorry about that, I deleted it accidentally together with other files. It's back up again. In any case, the current markdown package is still based on discount. Modesty aside, mine is fairly superior: * The current markdown package relies on ZEND_ACC_ALLOW_STATIC, which is deprecated (BC only, as the comment on zend_compile.h puts it) and raises an E_STRICT. * It has a constructor that takes a required flags parameter, which despite being required may or may not be used, depending on how you call the instance functions. * It exposes only the most basic discount interfaces (no url or attributes callback, no mkd_line, and no interface for mkd_css and mkd_toc if I recall). * Misses some discount flags * It hasn't been updated for two years. * Uses malloc, bypassing the zend engine memory manager, which requires strings returned by discount to be copied for use with PHP. * Mine is tested more comprehensively (70 tests) and is hosted in a git repository like discount, making merges from upstream much easier. I think the best option would be to deprecate the current markdown package (which only has an alpha release, so the users shouldn't even interface stability) in favor of mine. But it's up to Pierre, who maintains the markdown package. -- Gustavo Lopes

« previous php.pecl.dev (#7922) next »