Giter Site home page Giter Site logo

Comments (4)

mjisoton avatar mjisoton commented on June 15, 2024 1

What about the error_reporting directive?
It looks like FlightPHP checks if the error level is within the error_reporting directive with a bitwise operation, and then calls the handler function for Exceptions:

public function handleError($errno, $errstr, $errfile, $errline) {
  if ($errno & error_reporting()) {
     throw new \ErrorException($errstr, $errno, 0, $errfile, $errline);
  }
}

So, if you really don't want any kind of error to be shown, you probably should set error_reporting=0 in your php.ini. Not sure though.

from core.

n0nag0n avatar n0nag0n commented on June 15, 2024 1

from core.

krmu avatar krmu commented on June 15, 2024

+1
Tested, specially when you try to render a PHP file (Flight::render). It just wont load, but it has error inside of it.
If file has error outside of the framework, it shows errors correctly but render function gives blank page.

from core.

krmu avatar krmu commented on June 15, 2024

Error reporting works when you use Flight::Render for all the files that you have. For me, the fix was to use the renderer for all files that should be used. I will close this for now. If someone still has an issue with this, please create a new issue ticket.

from core.

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.