php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23918 Return type incorrect for register_shutdown_function.
Submitted: 2003-05-31 04:14 UTC Modified: 2003-05-31 09:55 UTC
From: unknown at yabbse dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2 OS: Windows XP; IIS 5.1
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: unknown at yabbse dot org
New email:
PHP Version: OS:

 

 [2003-05-31 04:14 UTC] unknown at yabbse dot org
http://www.php.net/function.register-shutdown-function

The above documentation describes register_shutdown_function() as returning an int, however the following PHP code shows this to not be so: (what would it return, anyway?)

<?php

var_dump(register_shutdown_function('temp'));
// Output: NULL

function temp()
{
}

?>

Although this isn't a large issue that will cause any problems, it's also an easy thing to fix.  (I would assume...)

Thanks,
-[Unknown]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-31 09:55 UTC] philip@php.net
This has been fixed in CVS and will show up during the next manual build, thanks for the report :)

http://cvs.php.net/cvs.php/phpdoc/en/reference/funchand/functions/register-shutdown-function.xml
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 01:01:32 2025 UTC