From:             unknown at yabbse dot org
Operating system: Windows XP; IIS 5.1
PHP version:      4.3.2
PHP Bug Type:     Documentation problem
Bug description:  Return type incorrect for register_shutdown_function.

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]
-- 
Edit bug report at http://bugs.php.net/?id=23918&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23918&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23918&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23918&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23918&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23918&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23918&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23918&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23918&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23918&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23918&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23918&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23918&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23918&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23918&r=gnused


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to