Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18410

Re: log_errors = Off not work

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: log_errors = Off not work
Date 2020-11-19 15:42 +0100
Message-ID <i1neijF6l51U1@mid.individual.net> (permalink)
References <rp2mf7$14ir$1@gioia.aioe.org>

Show all headers | View raw


alex:

> $ grep 'log_errors =' /etc/php/7.4/cli/php.ini
> log_errors = Off

That's not relevant.

Check what

php -i | grep log_errors

says.

> $ date && php -r "error_log('abc');" && ls -l /var/log/error.log
> mer 18 nov 2020, 09:25:58, CET
> -rw-rw-r-- 1 xxx yyy 25931 nov 18 09:25 /var/log/error.log
> 
> As you can see log_errors is Off, but it seems that the log file is 
> written: just compare the current date with the file date.
> 
> Why?

Are you sure, PHP 7.4 is the one which is called using php? Check with

php -v


-- 
Arno Welzel
https://arnowelzel.de

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 09:36 +0100
  Re: log_errors = Off not work "J.O. Aho" <user@example.net> - 2020-11-18 14:12 +0100
    Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 16:39 +0100
      Re: log_errors = Off not work "J.O. Aho" <user@example.net> - 2020-11-18 17:09 +0100
        Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 17:25 +0100
          Re: log_errors = Off not work Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-11-18 17:39 +0000
            Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-19 16:27 +0100
  Re: log_errors = Off not work Arno Welzel <usenet@arnowelzel.de> - 2020-11-19 15:42 +0100
    Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-19 19:22 +0100

csiph-web