From aa5d6895d0ac8c6ea050a8ea55e2f8a39ddfe365 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Tue, 28 Aug 2018 14:24:29 +0200 Subject: Use php's logging functions This commit replace our usage of `php_log_err` with `zend_error`. This should allow administrators to display errors in the webpage, should they want to; and to properly manipulate the verbosity's level. This should close #217 --- src/sp_upload_validation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_upload_validation.c') diff --git a/src/sp_upload_validation.c b/src/sp_upload_validation.c index a8a1340..c079e41 100644 --- a/src/sp_upload_validation.c +++ b/src/sp_upload_validation.c @@ -63,7 +63,7 @@ int sp_rfc1867_callback(unsigned int event, void *event_data, void **extra) { ZSTR_VAL( SNUFFLEUPAGUS_G(config).config_upload_validation->script), cmd, env) == -1) { - sp_log_err( + sp_log_warn( "upload_validation", "Could not call '%s' : %s", ZSTR_VAL( SNUFFLEUPAGUS_G(config).config_upload_validation->script), @@ -90,7 +90,7 @@ int sp_rfc1867_callback(unsigned int event, void *event_data, void **extra) { "The upload of %s on %s was rejected.", filename, uri ? uri : "?"); if (!SNUFFLEUPAGUS_G(config).config_upload_validation->simulation) { - zend_bailout(); + sp_terminate(); } } } -- cgit v1.3