Skip to content
#externals

Search

113 results · page 1 of 6

  1. Eric Norris ·

    … a new thread. As it has now been two weeks and discussion has quieted down, I've now opened the "Error backtraces v2" RFC for voting: https://wiki.php.net/rfc/error_backtraces_v2 Once again I've added an …

  2. RFC Discussion Error backtraces v2

    Eric Norris ·

    Hello yet again internals, I'd like to formally propose a continuation of the original error backtraces RFC (https://wiki.php.net/rfc/error_backtraces): https://wiki.php.net/rfc/error_backtraces_v2 We recently had a production incident …

  3. Nikita Popov ·

    … is not a given. If you generate 10k deprecation warnings during a request, you're definitely going to feel those backtraces. INI setting should take care of this. If your code is crap, don't flip it on. There's …

  4. Gina P. Banyard ·

    … made a change to the php_error_cb function for the Error Backtraces v2 RFC (https://wiki.php.net/rfc/error_backtraces_v2), and I recall that working inside that function was quite difficult. The error_prepend_string and error …

  5. tim@bastelstu.be ·

    … whenever PHP creates a backtrace. This includes the backtrace added to Exception objects, the debug_backtrace() function and the fatal error backtraces added in PHP 8.5 with https://wiki.php.net/rfc/error_backtraces_v2. This is also listed …

  6. Andi Gutmans ·

    … list regarding PHP's naming convention for OOCode i took a deeper look at fixing my main concerns. That is error messages, backtraces and reflection show lowercased method names. However this is easily changeable; with a minor performance decrease at …

  7. Adam Harvey ·

    … 15x other public functions. I give up!" Sure, but in practice, that's why most development environments provide backtraces on error or uncaught exception, whether through something like XDebug or via a call to debug_print_backtrace() in the error …

  8. Brian Shire ·

    … that need to be handled properly when the engine is in this state. When possible we enable the printing of backtraces and other debug information, however you run the risk that instead of a nice backtrace you get a nice …

  9. Andrey Andreev ·

    … effect from this addition. With that being said, I also know the pain of having to deal with borderline useless error messages. The proposal isn't without merit, but I'd look for alternative approaches that don't create security …

  10. Rowan Collins ·

    … correct stack-trace now. This change corrects those cases. Even if that's a minor BC break, it corrects an error. I'm still not convinced that re-throwing should automatically generate a new stack trace. To repeat my previous …

  11. Rowan Collins ·

    … well :) Based on my own experiences where I had to fix multiple apps when we introduced the unserializable Closure (mostly error logger and debugging tools) which got passed as argument in the backtrace I would prefer if we could remove …

  12. Rowan Collins ·

    … best alternative, if it is not handled, is to call die(). Clearly, E_ERROR meets this standard, and E_WARNING does not. There has been much talk previously that "exceptions are great because they include full backtraces", but there's

  13. Nate Gordon ·

    Hi! prevented. The short background of what I'm doing is serializing backtraces when errors occur so that I can better diagnose bugs my clients report. But when a closure is passed as a function parameter somewhere in the …

  14. Nuno Peralta ·

    … I'd like to give the suggestion to PHP developers to make it more useful. In my applications, I register error/exception handlers, like: /set_error_handler('process_error_backtrace');// //set_exception_handler('process_exception_backtrace');/ which allow me to …

  15. Marcus Boerger ·

    … George S. example. An example based closely on the example noted in the book, compiles fine, but generates the following error and backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0822d12b in zend_std_get_constructor (object=0x8459a48, tsrm_ls=0x835e018 …

  16. shire ·

    … Exception thrown without a stack frame" (I assume this is the error you meant not, stack trace). There is no backtrace information available when this error occurs so nothing is going to get you a backtrace that i know of …

  17. Marco Pivetta ·

    Nobody needs to work with exceptions if they dont want to, that fatal error just shows up as a uncaught backtrace and fatals errors just like it used to. Seems like a win win. Seems more like a lose …

  18. Rasmus Lerdorf ·

    … resources get deleted from the list and my destructors are called an exit properly but at the end of my php script, while testing, I get a bus error on the very last line. The backtrace boils down to shutdow

  19. Bob Weinand ·

    Hey Edmond, Good day, everyone. In the neighboring thread Concept: Lightweight error channels, the topic of exception performance was discussed. The main issue is the immediate backtrace generation in the constructor, which can cause up to a 50% performance loss …

  20. Edmond Dantes ·

    Implement a new LightException (or similar name) with no args in getTrace(). or 4) Deferred backtrace mechanism: Does not compute the backtrace when the exception is created. The backtrace is fully computed only if the exception is caught using …