I know that an E_WARNING is generated by PHP
But how can I detect this in my script?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A “close enough” method would be to check
if( count($_POST, COUNT_RECURSIVE) == ini_get("max_input_vars"))This will cause a false positive if the number of POST vars happens to be exactly on the limit, but considering the default limit is 1000 it’s unlikely to ever be a concern.