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
 [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: Tue Jul 15 16:01:33 2025 UTC