mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use the new error code
@- Added set_error_handler() to allow custom error handling functions, @ instead of the built-in error handling code (Zeev, Zend Engine) @- Renamed user_error() to trigger_error(); user_error() remains @ defined for compatibility (Zeev, Zend Engine)
This commit is contained in:
parent
ab36e22aeb
commit
06388f5181
2 changed files with 0 additions and 58 deletions
|
@ -248,12 +248,7 @@ extern void php_log_err(char *log_message);
|
|||
extern int Debug(char *format, ...);
|
||||
extern int cfgparse(void);
|
||||
|
||||
#if ZEND_NEW_ERROR_HANDLING
|
||||
#define php_error zend_error
|
||||
#else
|
||||
extern PHPAPI void php_error_cb(int type, const char *format, ...);
|
||||
#define php_error php_error_cb
|
||||
#endif
|
||||
|
||||
|
||||
#define zenderror phperror
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue