Regular expression-PHP regular expression replacing preg_replace will crash the program?

Source: Internet
Author: User
Php5.6.15 I wrote an SQL statement for batch database insertion, which is very long. filtering SQL statements with preg_replace will cause the program to crash and there is no error record. the system log reports an error in php5ts. dll. I am fine if SQL is a little short. Even if the backtracing limit is exceeded, what should not be... php5.6.15

I wrote an SQL statement for batch database insertion, which is very long. filtering SQL statements with preg_replace will cause the program to crash, and there is no error record. in this case, the php5ts. dll error is reported in the system log. I am fine if SQL is a little short.

Should I return a failure even if it exceeds the backtracking limit? How can it crash?

Has anyone ever met? What's going on?

Reply content:

Php5.6.15

I wrote an SQL statement for batch database insertion, which is very long. filtering SQL statements with preg_replace will cause the program to crash, and there is no error record. in this case, the php5ts. dll error is reported in the system log. I am fine if SQL is a little short.

Should I return a failure even if it exceeds the backtracking limit? How can it crash?

Has anyone ever met? What's going on?

I have tested how to write more than 7000 simple data records in batches at a time. This will take a long time, just insert data multiple times.

I don't know if you want to insert an edge or replace an insert. you should separate them! Then, record the logs to see where the problem occurred.

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.