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


Groups > comp.lang.php > #18404

Re: log_errors = Off not work

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: log_errors = Off not work
Date Wed, 18 Nov 2020 14:12:08 +0100
Lines 28
Message-ID <i1kkt8Fk9stU1@mid.individual.net> (permalink)
References <rp2mf7$14ir$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net WUeji+O2imMjSp98DFC4NAhwnndhJkkF0YUHWCMETgqN4367RU
Cancel-Lock sha1:c2RTlut3BBKJ2ONG3JS1Z4ek7nk=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0
In-Reply-To <rp2mf7$14ir$1@gioia.aioe.org>
Content-Language en-US-large
Xref csiph.com comp.lang.php:18404

Show key headers only | View raw


On 18/11/2020 09.36, alex wrote:
> $ grep 'log_errors =' /etc/php/7.4/cli/php.ini
> log_errors = Off
> 
> $ 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?

Did you do a tail /var/log/error.log to see that it was your message 
that was written there and not something else that just happen to have 
the same minute for it's log write?

Are you sure your php cli is version 7.4?

did you try to just comment it out by placing ; as the first character 
of the line? Sometimes non-visible characters may cause problems.
(default value is Off)

did you uncomment error_log = syslog or set a custom file?

-- 

  //Aho

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