GithubHelp home page GithubHelp logo

Comments (4)

csaggo avatar csaggo commented on June 14, 2024 3

I did a similar fix for PHP 7.4

changed
if ($last_error['type'] === E_ERROR) {
to
if ($last_error && $last_error['type'] === E_ERROR) {

Is the Module still in active development @thomasaull ? Its a great API-Starter for sure! If you need contributions please let us know

from restapi.

thomasaull avatar thomasaull commented on June 14, 2024 3

Hey @spoetnik, @csaggo

thanks for your issue and solving the problem. I just released v0.0.7 which contains the fix by @csaggo.

Regarding your question: Yes in theory the module is still in active development, my resources over the last year have been kind of limited though. I try my best to offer support and provide fixes for critical things like this issue. However there are two interesting PRs laying around for quite some time now, which I haven't had time to look into (#3 is adding basic-auth by @flydev-fr, #5 adds a lot of new functionality (better jwt-handling, multiple api keys and much more) by @Sebiworld). It's a pity theses aren't integrated yet. So if anyone of you guys have time to do a first code review of those I'd be very thankful :)

from restapi.

spoetnik avatar spoetnik commented on June 14, 2024

Diggin into this, it seems like the module is not yet php 7.4 compatible.

This fixes it, but I'm not sure if this is right...

public static function handleFatalError() { if (error_get_last()!==null){ $last_error = error_get_last(); if ($last_error['type'] === E_ERROR) { // fatal error self::handleError(E_ERROR, $last_error['message'], $last_error['file'], $last_error['line']); } } }

from restapi.

thomasaull avatar thomasaull commented on June 14, 2024

I'm going to close this issue for now, feel free to re-open if there's any problems with the new release!

from restapi.

Related Issues (9)

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.