How to get Notice / Warning as object in PHP?Get the solution ↓↓↓
I'm using PHP 7.3. I'm curious if it is possible to get PHP's
Warning as an object (raised by PHP itself and not by user)? I would appreciate any examples including PHP manual references or code snippets from PHP's internals.
Note: I'm not asking about
set_error_handler function which can catch warnings and notices but sadly not as a full objects (https://www.php.net/manual/en/function.set-error-handler.php). I don't want to generate my own
Warning objects with
trigger_error as it mentioned here: Is there any way to show, or throw, a PHP warning?.
People are also looking for solutions of the problem: call to undefined function illuminate\encryption\openssl_cipher_iv_length()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.