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

From: Date: Mon, 21 Sep 2020 11:07:37 +0000
Subject: Bug #80128 [Com]: trigger_error produces 255 exit code
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229107@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 Comment by: php at shyim dot de 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: I am really new to debugging into PHP. You mean with xdebug or something like gdb? Previous Comments: ------------------------------------------------------------------------ [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 (#229107) next »