php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70614 phpdbg: incorrect exit code in run and quit mode (-rr)
Submitted: 2015-10-01 17:39 UTC Modified: 2015-10-02 10:17 UTC
From: j dot tvr at centrum dot cz Assigned: bwoebi (profile)
Status: Closed Package: phpdbg
PHP Version: 7.0.0RC4 OS:
Private report: No CVE-ID: None
 [2015-10-01 17:39 UTC] j dot tvr at centrum dot cz
Description:
------------
phpdbg SAPI return in run and quit mode (-rr) invalid exit code for uncaught exception/fatal error.

See https://bugs.php.net/bug.php?id=60978#1328439270 for more thorough expected behavior description.

Test script:
---------------
phpdbg -qrr test.php; echo $?

<?php throw new Exception();

Expected result:
----------------
255

Actual result:
--------------
0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-02 10:17 UTC] bwoebi@php.net
-Assigned To: +Assigned To: bwoebi
 [2015-10-02 10:37 UTC] bwoebi@php.net
Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0c03ba0ad0dfb4c5a7d3a1de19545a785be90ed6
Log: Fixed bug #70614 (incorrect exit code in -rr mode with Exceptions)
 [2015-10-02 10:37 UTC] bwoebi@php.net
-Status: Assigned +Status: Closed
 [2015-10-02 10:38 UTC] bwoebi@php.net
Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0c03ba0ad0dfb4c5a7d3a1de19545a785be90ed6
Log: Fixed bug #70614 (incorrect exit code in -rr mode with Exceptions)
 [2015-10-13 10:12 UTC] ab@php.net
Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0c03ba0ad0dfb4c5a7d3a1de19545a785be90ed6
Log: Fixed bug #70614 (incorrect exit code in -rr mode with Exceptions)
 [2016-07-20 11:36 UTC] davey@php.net
Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0c03ba0ad0dfb4c5a7d3a1de19545a785be90ed6
Log: Fixed bug #70614 (incorrect exit code in -rr mode with Exceptions)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 01 23:01:29 2024 UTC