php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36425 register_shutdown_function can't recognize function "exit"
Submitted: 2006-02-17 10:31 UTC Modified: 2006-02-17 10:40 UTC
From: chen dot daqi at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.2 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chen dot daqi at gmail dot com
New email:
PHP Version: OS:

 

 [2006-02-17 10:31 UTC] chen dot daqi at gmail dot com
Description:
------------
register_shutdown_function can't recognize function "exit"

Reproduce code:
---------------
<?php
register_shutdown_function("exit", 1);
?>


Expected result:
----------------
Expect: Nothing will happen when these code being executed

Actual result:
--------------
Warning: register_shutdown_function(): Invalid shutdown callback 'exit' passed in a.php on line 2


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-17 10:40 UTC] tony2001@php.net
Note: This is not a real function, but a language construct. 
http://php.net/exit
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Dec 07 10:00:02 2025 UTC