mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #7] [CLOSED] status codes #7595
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/7
Author: @tvlooy
Created: 10/12/2010
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
b43b108status codes fix📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
lib/vendor/Symfony/Component/Console/Application.php(+3 -0)📄 Description
if you return a status code bigger than 255, bash will see it as status code 0. Proof:
php -r "exit(255);" ; echo? 255php -r "exit(256);" ; echo? 0This is also in the bash manpage in the section "EXIT STATUS". This fix makes sure an error code stays an error code (round it to 255, which means "error code out of range" by the way), so we can check for it. I noticed this because Doctrine 2.0 migrations threw a PDO exception and tried to exit with code 23000. This became an exit(0) and our buildsystem did a thumbs up. Obviously not ok :-)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.