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

From: Date: Mon, 21 Sep 2020 11:13:04 +0000
Subject: Bug #80128 [Fbk]: trigger_error produces 255 exit code
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229108@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: requinix@php.net Reported by: php at shyim dot de Summary: trigger_error produces 255 exit code Status: Feedback Type: Bug Package: *General Issues Operating System: NixOs PHP Version: 8.0.0beta4 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2020-09-21 08:34:14] php at shyim dot de Description: ------------ I am currently testing our Software on PHP 8. Anything seems to work, but the CLI Installer fails. I did some debugging using var_dump and searching which line produces the 255 exit code without message. It was always the trigger_error calls. When I remove from the entire project all trigger_error calls, the installation step works. Test script: --------------- Unfortunately I don't know what causes it. But when you run our Installer (MySQL Database needed) it crashes always. See install.sh to how to execute the installer. Github Repository: https://github.com/shyim/php8-bug-trigger-error Expected result: ---------------- The Installer works runs with exit code 0. And a recovery/install/data/install.lock file exists Actual result: -------------- The trigger_error triggers 255 exit code without message. Example: https://github.com/symfony/form/blob/v4.4.13/DependencyInjection/FormPass.php#L100 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80128&edit=1

« previous php.bugs (#229108) next »