Get the App
SLTechnology News&Howtos  ›  Development  › 

How to return extended errors in php

Shulou Source: shulou.com Published: 2022-06-03 14:46:01 11月14日 Update

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

Tags: Error function hint time output source code process reference processing important that is information content file is in program article code value interest Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Redmi NVidia Shulou Tech Info Huawei