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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 00:01:35 2025 UTC