How to return extended errors in php
This article mainly introduces how to return extended errors in php. It is very detailed and has a certain reference value. Friends who are interested must read it!
The php extension returns the error setting method: 1, open the corresponding PHP file; 2, in the expansion through the "php_error_docref ()" function to throw an error prompt.
This article operating environment: windows7 system, PHP7.1 version, DELL G3 computer
How is the php extension error returned?
Php source code-throwing and handling errors in extensions
First of all, let's talk about the types of errors at the source code level. There are probably several kinds of errors.
/ / zend_errors.h file # define E_ERROR (1