How to get slim to appear without defining a variable without indexing only error without exiting the program

Source: Internet
Author: User
History has a large program of PHP, which is extremely irregular, many variables are defined only in the paragraph of the if statement, but the latter is used; there are many cases where it is possible to use the value of the index without specifying an index value without first judging whether the index exists.

Of course, the best is to fix these non-standard, but the workload is too large.

Note: The pit Daddy is, at present the program runs well, only then appears the above problem situation the log has the error.

But now we need to plug a slim framework, add the source program to the RESTful interface, then the problem is, any one of the above error occurs, Slim will quit the program.

Is there any setting or parameter that allows access to the slim interface to execute the source program's class/function, the more likely the error is the same as the source program just write the error log without forcing the exit to run .

Reply content:

History has a large program of PHP, which is extremely irregular, many variables are defined only in the paragraph of the if statement, but the latter is used; there are many cases where it is possible to use the value of the index without specifying an index value without first judging whether the index exists.

Of course, the best is to fix these non-standard, but the workload is too large.

Note: The pit Daddy is, at present the program runs well, only then appears the above problem situation the log has the error.

But now we need to plug a slim framework, add the source program to the RESTful interface, then the problem is, any one of the above error occurs, Slim will quit the program.

Is there any setting or parameter that allows access to the slim interface to execute the source program's class/function, the more likely the error is the same as the source program just write the error log without forcing the exit to run .

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.