CI4 Errors and Exceptions |
In PHP The Right Way - this comment is made:
Quote:PHP itself is fairly lax with this, and a call to file_get_contents() will usually just get you a FALSE and a warning. Many older PHP frameworks like CodeIgniter will just return a false, log a message to their proprietary logs and maybe let you use a method like $this->upload->get_error() to see what went wrong. The problem here is that you have to go looking for a mistake and check the docs to see what the error method is for this class, instead of having it made extremely obvious. https://phptherightway.com/#errors Will CI4 handle errors more correctly? I'm assuming the answer is a "yes". Also, once Ci4 is in production is there a task to contact PHP The Right Way guys and ask them to adjust there site?
Based on what I’m reading in that paragraph, and reading the paragraph immediately preceding it, I find it hard to believe that people actually read and believe that PHP The Right Way is a reliable source or reference. This is absolute garbage to read.
I must agree that it is a bit of a trial to go through.
It is often mentioned in reddit.com/r/PHP (along with a backstab to CI).
Yes, the vast majority of failures in CI4 throw exceptions.
|
Welcome Guest, Not a member yet? Register Sign In |