Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

No, that'd be silly. -- Larry Wall in <199710221710.KAA24242@wall.org>


devel / comp.lang.php / backtrace into error.log

SubjectAuthor
* backtrace into error.logalex
`* Re: backtrace into error.logJerry Stuckle
 `* Re: backtrace into error.logalex
  `* Re: backtrace into error.logArno Welzel
   `* Re: backtrace into error.logalex
    +- Re: backtrace into error.logalex
    `* Re: backtrace into error.logStefan Froehlich
     `- Re: backtrace into error.logalex

1
backtrace into error.log

<t3tshf$1a0j$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=491&group=comp.lang.php#491

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!Oaqc3b9na87RPuPFY8Wj9g.user.46.165.242.91.POSTED!not-for-mail
From: 1j9448a02@lnx159sneakemail.com.invalid (alex)
Newsgroups: comp.lang.php
Subject: backtrace into error.log
Date: Fri, 22 Apr 2022 11:29:19 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t3tshf$1a0j$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="43027"; posting-host="Oaqc3b9na87RPuPFY8Wj9g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: it-IT
X-Notice: Filtered by postfilter v. 0.9.2
 by: alex - Fri, 22 Apr 2022 09:29 UTC

$ cat /tmp/tmp.yCbtQyetH5/test.php
<?php
function error() {
trigger_error('abc');
} error();

$ php /tmp/tmp.yCbtQyetH5/test.php

$ tail -n 1 /var/log/error.log
[22-Apr-2022 11:21:40 Europe/Berlin] PHP Notice: abc in
/tmp/tmp.yCbtQyetH5/test.php on line 3

The backtrace is missing.
Why?

If it helps, here is a summary of php.ini:

log_errors = On
error_log = /var/log/error.log
display_errors = Off

Re: backtrace into error.log

<t3uctd$78h$1@jstuckle.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=492&group=comp.lang.php#492

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!jstuckle.eternal-september.org!.POSTED!not-for-mail
From: stuckle.jerry@gmail.com (Jerry Stuckle)
Newsgroups: comp.lang.php
Subject: Re: backtrace into error.log
Date: Fri, 22 Apr 2022 10:08:44 -0400
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <t3uctd$78h$1@jstuckle.eternal-september.org>
References: <t3tshf$1a0j$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Apr 2022 14:08:46 -0000 (UTC)
Injection-Info: jstuckle.eternal-september.org; posting-host="36ed86c8b46ee73df9491a41fe6afb86";
logging-data="7441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YwKhuK6q0DocHWQus+p10UF5C5Wqidvk="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:QO+DnaY/JqKmUN9fZuTCzuwHrfc=
In-Reply-To: <t3tshf$1a0j$1@gioia.aioe.org>
Content-Language: en-US
 by: Jerry Stuckle - Fri, 22 Apr 2022 14:08 UTC

On 4/22/2022 5:29 AM, alex wrote:
> $ cat /tmp/tmp.yCbtQyetH5/test.php
> <?php
> function error() {
>     trigger_error('abc');
> }
> error();
>
> $ php /tmp/tmp.yCbtQyetH5/test.php
>
> $ tail -n 1 /var/log/error.log
> [22-Apr-2022 11:21:40 Europe/Berlin] PHP Notice:  abc in
> /tmp/tmp.yCbtQyetH5/test.php on line 3
>
> The backtrace is missing.
> Why?
>
> If it helps, here is a summary of php.ini:
>
> log_errors = On
> error_log = /var/log/error.log
> display_errors = Off

You never told it to generate a backtrace.

--
==================
Remove the "x"'s from my email address
Jerry Stuckle
stucklex.jerryx@gmail.com
==================

Re: backtrace into error.log

<t3ufsr$jav$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=493&group=comp.lang.php#493

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!Oaqc3b9na87RPuPFY8Wj9g.user.46.165.242.91.POSTED!not-for-mail
From: 1j9448a02@lnx159sneakemail.com.invalid (alex)
Newsgroups: comp.lang.php
Subject: Re: backtrace into error.log
Date: Fri, 22 Apr 2022 16:59:39 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t3ufsr$jav$1@gioia.aioe.org>
References: <t3tshf$1a0j$1@gioia.aioe.org>
<t3uctd$78h$1@jstuckle.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="19807"; posting-host="Oaqc3b9na87RPuPFY8Wj9g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: it-IT
X-Notice: Filtered by postfilter v. 0.9.2
 by: alex - Fri, 22 Apr 2022 14:59 UTC

Il 22/04/22 16:08, Jerry Stuckle ha scritto:
>
> You never told it to generate a backtrace.

that is?
do i have to set something?

Re: backtrace into error.log

<jcg3nsFpoptU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=494&group=comp.lang.php#494

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.lang.php
Subject: Re: backtrace into error.log
Date: Fri, 22 Apr 2022 18:34:05 +0200
Lines: 15
Message-ID: <jcg3nsFpoptU1@mid.individual.net>
References: <t3tshf$1a0j$1@gioia.aioe.org>
<t3uctd$78h$1@jstuckle.eternal-september.org> <t3ufsr$jav$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net mKF9zANzC/HNQZsMORhe9gXHA4C6qjFo1oDqEZfsziA/6S0dGR
Cancel-Lock: sha1:P9SxpiAoPhA+iJ38TFm2p5I/B7E=
Content-Language: de-DE
In-Reply-To: <t3ufsr$jav$1@gioia.aioe.org>
 by: Arno Welzel - Fri, 22 Apr 2022 16:34 UTC

alex:

> Il 22/04/22 16:08, Jerry Stuckle ha scritto:
>>
>> You never told it to generate a backtrace.
>
> that is?
> do i have to set something?

<https://www.php.net/manual/en/function.debug-backtrace.php>

--
Arno Welzel
https://arnowelzel.de

Re: backtrace into error.log

<t3unqc$f7n$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=495&group=comp.lang.php#495

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!Oaqc3b9na87RPuPFY8Wj9g.user.46.165.242.91.POSTED!not-for-mail
From: 1j9448a02@lnx159sneakemail.com.invalid (alex)
Newsgroups: comp.lang.php
Subject: Re: backtrace into error.log
Date: Fri, 22 Apr 2022 19:14:52 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t3unqc$f7n$1@gioia.aioe.org>
References: <t3tshf$1a0j$1@gioia.aioe.org>
<t3uctd$78h$1@jstuckle.eternal-september.org> <t3ufsr$jav$1@gioia.aioe.org>
<jcg3nsFpoptU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="15607"; posting-host="Oaqc3b9na87RPuPFY8Wj9g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: it-IT
X-Notice: Filtered by postfilter v. 0.9.2
 by: alex - Fri, 22 Apr 2022 17:14 UTC

Il 22/04/22 18:34, Arno Welzel ha scritto:
> alex:
>
>> Il 22/04/22 16:08, Jerry Stuckle ha scritto:
>>>
>>> You never told it to generate a backtrace.
>>
>> that is?
>> do i have to set something?
>
> <https://www.php.net/manual/en/function.debug-backtrace.php>
>
>

But this is for manually generating.
Yet it seems to me that before (perhaps with an older version of php)
the backtrace was logged normally.

Re: backtrace into error.log

<t3uoo5$u6e$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=496&group=comp.lang.php#496

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!Oaqc3b9na87RPuPFY8Wj9g.user.46.165.242.91.POSTED!not-for-mail
From: 1j9448a02@lnx159sneakemail.com.invalid (alex)
Newsgroups: comp.lang.php
Subject: Re: backtrace into error.log
Date: Fri, 22 Apr 2022 19:30:45 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t3uoo5$u6e$1@gioia.aioe.org>
References: <t3tshf$1a0j$1@gioia.aioe.org>
<t3uctd$78h$1@jstuckle.eternal-september.org> <t3ufsr$jav$1@gioia.aioe.org>
<jcg3nsFpoptU1@mid.individual.net> <t3unqc$f7n$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="30926"; posting-host="Oaqc3b9na87RPuPFY8Wj9g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it-IT
 by: alex - Fri, 22 Apr 2022 17:30 UTC

Il 22/04/22 19:14, alex ha scritto:
> Il 22/04/22 18:34, Arno Welzel ha scritto:
>> alex:
>>
>>> Il 22/04/22 16:08, Jerry Stuckle ha scritto:
>>>>
>>>> You never told it to generate a backtrace.
>>>
>>> that is?
>>> do i have to set something?
>>
>> <https://www.php.net/manual/en/function.debug-backtrace.php>
>>
>>
>
> But this is for manually generating.
> Yet it seems to me that before (perhaps with an older version of php)
> the backtrace was logged normally.

https://tommcfarlin.com/wp-content/uploads/2016/11/console-app-wordpress.png

Re: backtrace into error.log

<7t6263a953i11b8d9n3e8%sfroehli@Froehlich.Priv.at>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=497&group=comp.lang.php#497

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich)
Newsgroups: comp.lang.php
Subject: Re: backtrace into error.log
Date: 23 Apr 2022 07:24:57 GMT
Lines: 21
Message-ID: <7t6263a953i11b8d9n3e8%sfroehli@Froehlich.Priv.at>
References: <t3tshf$1a0j$1@gioia.aioe.org> <t3uctd$78h$1@jstuckle.eternal-september.org> <t3ufsr$jav$1@gioia.aioe.org> <jcg3nsFpoptU1@mid.individual.net> <t3unqc$f7n$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net BfFkSu6DsjzpVv2QLKBhZQ20z/LZ3zd19ZYAHrGPjPm2HNbY8=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:J4VGGqOpjMMsDPEEj9wjuM62Eow=
X-Blattlinie: dieser Artikel repraesentiert meine persoenliche Meinung
X-Medieninhaber: Stefan Froehlich
X-Verleger: Stefan Froehlich
X-Verlagsort: Wien
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/5.10.0-13-amd64 (x86_64))
 by: Stefan Froehlich - Sat, 23 Apr 2022 07:24 UTC

On Fri, 22 Apr 2022 19:14:52 alex wrote:
> Il 22/04/22 18:34, Arno Welzel ha scritto:
>>> Il 22/04/22 16:08, Jerry Stuckle ha scritto:
>> <https://www.php.net/manual/en/function.debug-backtrace.php>

> But this is for manually generating.
> Yet it seems to me that before (perhaps with an older version of
> php) the backtrace was logged normally.

AFAIK PHP never did this, but xdebug does so - perhaps you had it
installed in earlier days.

Bye,
Stefan

--
http://kontaktinser.at/ - die kostenlose Kontaktboerse fuer Oesterreich
Offizieller Erstbesucher(TM) von mmeike

Verführung, die man spät bereut - Stefan: bocken, welch grünes Verlangen!
(Sloganizer)

Re: backtrace into error.log

<t40v7d$1j5n$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=498&group=comp.lang.php#498

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!Oaqc3b9na87RPuPFY8Wj9g.user.46.165.242.91.POSTED!not-for-mail
From: 1j9448a02@lnx159sneakemail.com.invalid (alex)
Newsgroups: comp.lang.php
Subject: Re: backtrace into error.log
Date: Sat, 23 Apr 2022 15:33:32 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t40v7d$1j5n$1@gioia.aioe.org>
References: <t3tshf$1a0j$1@gioia.aioe.org>
<t3uctd$78h$1@jstuckle.eternal-september.org> <t3ufsr$jav$1@gioia.aioe.org>
<jcg3nsFpoptU1@mid.individual.net> <t3unqc$f7n$1@gioia.aioe.org>
<7t6263a953i11b8d9n3e8%sfroehli@Froehlich.Priv.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="52407"; posting-host="Oaqc3b9na87RPuPFY8Wj9g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it-IT
 by: alex - Sat, 23 Apr 2022 13:33 UTC

Il 23/04/22 09:24, Stefan Froehlich ha scritto:
> AFAIK PHP never did this, but xdebug does so - perhaps you had it
> installed in earlier days.

I have found that with exceptions it works

$ php -r "trigger_error(123);throw new Exception;"
$ tail -n5 /var/log/error.log
[23-Apr-2022 15:30:31 Europe/Berlin] PHP Notice: 123 in Command line
code on line 1
[23-Apr-2022 15:30:31 Europe/Berlin] PHP Fatal error: Uncaught
Exception in Command line code:1
Stack trace:
#0 {main}
thrown in Command line code on line 1

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor