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


Groups > comp.lang.php > #18922 > unrolled thread

backtrace into error.log

Started byalex <1j9448a02@lnx159sneakemail.com.invalid>
First post2022-04-22 11:29 +0200
Last post2023-10-14 04:01 -0700
Articles 9 — 5 participants

Back to article view | Back to comp.lang.php


Contents

  backtrace into error.log alex <1j9448a02@lnx159sneakemail.com.invalid> - 2022-04-22 11:29 +0200
    Re: backtrace into error.log Jerry Stuckle <stuckle.jerry@gmail.com> - 2022-04-22 10:08 -0400
      Re: backtrace into error.log alex <1j9448a02@lnx159sneakemail.com.invalid> - 2022-04-22 16:59 +0200
        Re: backtrace into error.log Arno Welzel <usenet@arnowelzel.de> - 2022-04-22 18:34 +0200
          Re: backtrace into error.log alex <1j9448a02@lnx159sneakemail.com.invalid> - 2022-04-22 19:14 +0200
            Re: backtrace into error.log alex <1j9448a02@lnx159sneakemail.com.invalid> - 2022-04-22 19:30 +0200
            Re: backtrace into error.log Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2022-04-23 07:24 +0000
              Re: backtrace into error.log alex <1j9448a02@lnx159sneakemail.com.invalid> - 2022-04-23 15:33 +0200
              Re: backtrace into error.log Kristjan Robam <kristjanrobam1983@outlook.com> - 2023-10-14 04:01 -0700

#18922 — backtrace into error.log

Fromalex <1j9448a02@lnx159sneakemail.com.invalid>
Date2022-04-22 11:29 +0200
Subjectbacktrace into error.log
Message-ID<t3tshf$1a0j$1@gioia.aioe.org>
$ 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

[toc] | [next] | [standalone]


#18923

FromJerry Stuckle <stuckle.jerry@gmail.com>
Date2022-04-22 10:08 -0400
Message-ID<t3uctd$78h$1@jstuckle.eternal-september.org>
In reply to#18922
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
==================

[toc] | [prev] | [next] | [standalone]


#18924

Fromalex <1j9448a02@lnx159sneakemail.com.invalid>
Date2022-04-22 16:59 +0200
Message-ID<t3ufsr$jav$1@gioia.aioe.org>
In reply to#18923
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?

[toc] | [prev] | [next] | [standalone]


#18925

FromArno Welzel <usenet@arnowelzel.de>
Date2022-04-22 18:34 +0200
Message-ID<jcg3nsFpoptU1@mid.individual.net>
In reply to#18924
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

[toc] | [prev] | [next] | [standalone]


#18926

Fromalex <1j9448a02@lnx159sneakemail.com.invalid>
Date2022-04-22 19:14 +0200
Message-ID<t3unqc$f7n$1@gioia.aioe.org>
In reply to#18925
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.

[toc] | [prev] | [next] | [standalone]


#18927

Fromalex <1j9448a02@lnx159sneakemail.com.invalid>
Date2022-04-22 19:30 +0200
Message-ID<t3uoo5$u6e$1@gioia.aioe.org>
In reply to#18926
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

[toc] | [prev] | [next] | [standalone]


#18928

FromStefan+Usenet@Froehlich.Priv.at (Stefan Froehlich)
Date2022-04-23 07:24 +0000
Message-ID<7t6263a953i11b8d9n3e8%sfroehli@Froehlich.Priv.at>
In reply to#18926
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)

[toc] | [prev] | [next] | [standalone]


#18929

Fromalex <1j9448a02@lnx159sneakemail.com.invalid>
Date2022-04-23 15:33 +0200
Message-ID<t40v7d$1j5n$1@gioia.aioe.org>
In reply to#18928
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

[toc] | [prev] | [next] | [standalone]


#19521

FromKristjan Robam <kristjanrobam1983@outlook.com>
Date2023-10-14 04:01 -0700
Message-ID<b533da62-f2fc-4cf2-8852-85748ea50d00n@googlegroups.com>
In reply to#18928
Check out:

futureplacewheretobetogether.medianewsonline.com
futuremeetupplace.medianewsonline.com
futurechatplace.medianewsonline.com
gettingtoknowyourfutureplace.medianewsonline.com
thegettogetherplace.medianewsonline.com
themeetupplace.medianewsonline.com
gettingtoknowyourfuturehusband.medianewsonline.com
gettingtogether.medianewsonline.com
gettingknownnewpeople.medianewsonline.com
forthosewhofeellonely.medianewsonline.com
forlonelypeopletogettogether.medianewsonline.com
lonelypeoplegettingtogetherplace.medianewsonline.com
meetupingforlonelyones.medianewsonline.com
meetupingforthelonely.myartsonline.com
meetupingforthelonelyones.medianewsonline.com
gettingtogetherplaceforthelonely.medianewsonline.com
lonelypeoplemeetupplace.medianewsonline.com
gettintogether.web1337.net
forgettingtogether.10001mb.com
gettingtogether.10001mb.com

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

On Saturday, April 23, 2022 at 10:25:07 AM UTC+3, Stefan Froehlich wrote:
> 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)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web