Most of them (70% ?) are actually having wrong protos in docs. I refer to the ones that return boolean (like phpinfo() for instance) but documented as returning an integer. This is not really a huge issue, but does make confusion because of the kind of functions that MUST return true of false (is_link() for example).
-- Maxim Maletsky [EMAIL PROTECTED] On 12 Nov 2002 22:59:50 +0100 Zak Greant <[EMAIL PROTECTED]> wrote: > On Tue, 2002-11-12 at 20:25, David Brown wrote: > > On Tue, Nov 12, 2002 at 02:16:41PM -0500, David Brown wrote: > > | Hi everyone: > > | > > | For functions prototyped as returning void, return values seem to be applied > > | at random. Some functions, such as trigger_error/user_error, srand, ob_start, > > | and phpinfo, use RETURN_TRUE. The vast majority of these functions just fall > > | through, implicitly returning NULL to userland. > > > > Or perhaps I'v just thought about this entirely too long. Is it possible > > that the prototypes are just wrong in the documentation? > > Bingo! :) (or at least, that is my belief - I might be wrong :) > > --zak > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php