Bug #80128 [Fbk->Nab]: trigger_error produces 255 exit code

From: Date: Mon, 21 Sep 2020 12:24:03 +0000
Subject: Bug #80128 [Fbk->Nab]: trigger_error produces 255 exit code
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229111@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80128&edit=1 ID: 80128 Updated by: nikic@php.net Reported by: php at shyim dot de Summary: trigger_error produces 255 exit code -Status: Feedback +Status: Not a bug Type: Bug Package: *General Issues Operating System: NixOs PHP Version: 8.0.0beta4 Block user comment: N Private report: N New Comment: Please see these UPGRADING entries: * https://github.com/php/php-src/blob/4c821cf20668776737272587e7a87876b4fca25e/UPGRADING#L40 * https://github.com/php/php-src/blob/4c821cf20668776737272587e7a87876b4fca25e/UPGRADING#L60-L79 The right code would be https://3v4l.org/MFGOg This would be much more obvious if you did not set display_errors=0, that makes it essentially impossible to debug anything. Previous Comments: ------------------------------------------------------------------------ [2020-09-21 12:23:34] php at shyim dot de Okay I am not sure if that is a real issue, cause display_errors is disabled. Feel free to close, when you think the same :) ------------------------------------------------------------------------ [2020-09-21 12:13:25] php at shyim dot de Could reproduce it now, with a smaller Code Block. There 3v4l https://3v4l.org/9HAXe ------------------------------------------------------------------------ [2020-09-21 11:13:04] requinix@php.net Xdebug will be easier to work with. Basically every PHP IDE supports it and installation is pretty quick: mostly adding an extension and double-checking some settings. Check your IDE and/or Google for the exact process. If you know that the FormPass.php line causes it, set a breakpoint for that line and have your IDE run the installer. When PHP gets to that line, you'll "step into" the next call to see what happens. My bet is that execution will move off into an error handler somewhere, but maybe the program will just end at that moment. ------------------------------------------------------------------------ [2020-09-21 11:07:37] php at shyim dot de I am really new to debugging into PHP. You mean with xdebug or something like gdb? ------------------------------------------------------------------------ [2020-09-21 10:50:38] requinix@php.net Use an actual debugger to step through the code as it hits that trigger_error() call. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=80128 -- Edit this bug report at https://bugs.php.net/bug.php?id=80128&edit=1

« previous php.bugs (#229111) next »