• backtrace into error.log

    From alex@21:1/5 to All on Fri Apr 22 11:29:19 2022
    $ 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jerry Stuckle@21:1/5 to alex on Fri Apr 22 10:08:44 2022
    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
    ==================

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From alex@21:1/5 to All on Fri Apr 22 16:59:39 2022
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From alex@21:1/5 to All on Fri Apr 22 19:14:52 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arno Welzel@21:1/5 to All on Fri Apr 22 18:34:05 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From alex@21:1/5 to All on Fri Apr 22 19:30:45 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Froehlich@21:1/5 to All on Sat Apr 23 07:24:57 2022
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From alex@21:1/5 to All on Sat Apr 23 15:33:32 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kristjan Robam@21:1/5 to Stefan Froehlich on Sat Oct 14 04:01:17 2023
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)