Comments (4)
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.
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.
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.
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)
- multipart/form-data request not supported? HOT 5
- Running PW in a sub-folder HOT 7
- Snippet HOT 2
- Question on Code snippet HOT 3
- Just a Thank You HOT 2
- Status codes HOT 1
- json pretty print for superuser HOT 3
- Hookes not fired HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restapi.