php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52195 Interactive shell: gentle fatal error handling
Submitted: 2010-06-27 06:21 UTC Modified: 2010-06-28 12:51 UTC
From: bastard dot internets at gmail dot com Assigned: johannes (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.3.2 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bastard dot internets at gmail dot com
New email:
PHP Version: OS:

 

 [2010-06-27 06:21 UTC] bastard dot internets at gmail dot com
Description:
------------
Could interactive shell not exit on fatal or any other user-generated errors, rather instead continue after outputting the error message and code?  Giving a catchable error, just refusal to complete the previous command in its entity (such as fatal error caused by any script in an 'included' file) would be fine.

Test script:
---------------
Any code which could cause a fatal error.

Expected result:
----------------
Shell continues on fatal error, rather than exiting.

Actual result:
--------------
Ejection from shell.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-27 06:27 UTC] bastard dot internets at gmail dot com
To add, failure to start or continue the shell on bad config or environment settings would be expected.  Just not as a result of shell user errors, such as bad function definitions or typos.
 [2010-06-28 12:51 UTC] johannes@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: johannes
 [2010-06-28 12:51 UTC] johannes@php.net
This has been fixed in trunk some time ago, along with other improvements. Won't appear in 5.3 though.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 11:01:31 2024 UTC