Giter Club home page Giter Club logo

Comments (7)

erusev avatar erusev commented on July 1, 2024

@onet4

Is this the only part that is not supported in 5.2?

p.s. 5.2 has security issues. It's recommended that you upgrade.

from parsedown-extra.

onet4 avatar onet4 commented on July 1, 2024

@erusev I'm planning to include your work in my program that is going to be published as a module of a CMS. And the CMS unfortunately still supports PHP 5.2. And it's unknown which PHP version the possible users of the module would use.

It seems Parsedown works very well with PHP 5.2 so I hope Parsedown Extra as well.

from parsedown-extra.

erusev avatar erusev commented on July 1, 2024

I'll think about it. It'd be helpful if you could experiment with it and see if the uasort is the only thing that is not supported in 5.2.

from parsedown-extra.

GrahamCampbell avatar GrahamCampbell commented on July 1, 2024

I don't think we should support php 5.2 in parsedown extra.

from parsedown-extra.

hkdobrev avatar hkdobrev commented on July 1, 2024

FWIW, the thing not supported here is the inline closure. I'd go with using a static function so it would work on PHP 5.2, but not supporting it. So PHP 5.2-only bugs won't be fixed and if it's tested on PHP 5.2 it could be added to "allow_failures" on Travis CI.

from parsedown-extra.

GrahamCampbell avatar GrahamCampbell commented on July 1, 2024

I think we should just totally not allow php 5.2. People should not be running php 5.2. It's got some serious security issues.

from parsedown-extra.

reznoa avatar reznoa commented on July 1, 2024

use this:

    private static function FootnoteCompFunc($A, $B)
    {
        return $A['number'] - $B['number'];
    }
        uasort($this->DefinitionData['Footnote'], array('ParsedownExtra', 'FootnoteCompFunc'));

from parsedown-extra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.