note 126115 added to function.set-error-handler

From: Date: Thu, 27 May 2021 23:37:57 +0000
Subject: note 126115 added to function.set-error-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-216437@lists.php.net to get a copy of this message
If you are new to programming and you would like to know how to add a combination of those error reporting values to .htaccess file. Here's a small guide. With PHP function error_reporting we can add together option with bitwise add operator | . But we can't use those constants in htaccess file and in my case I have no idea how to add bitwise number. So, solution can be casting selected options to int: echo (int)(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR) ; ->263 Then you can use 263 in .htaccess php_value error_reporting 263 In my case I needed those errors to be displayed for my debugging server. But the combination can be different from mine. ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 23.16.75.76) ---- Manual Page -- https://php.net/manual/en/function.set-error-handler.php Edit -- https://main.php.net/note/edit/126115 Del: integrated -- https://main.php.net/note/delete/126115/integrated Del: useless -- https://main.php.net/note/delete/126115/useless Del: bad code -- https://main.php.net/note/delete/126115/bad+code Del: spam -- https://main.php.net/note/delete/126115/spam Del: non-english -- https://main.php.net/note/delete/126115/non-english Del: in docs -- https://main.php.net/note/delete/126115/in+docs Del: other reasons-- https://main.php.net/note/delete/126115 Reject -- https://main.php.net/note/reject/126115 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216437) next »