Re: cvs: phpdoc /en/functions sockets.xml

From: Date: Wed, 09 Jan 2002 09:47:32 +0000
Subject: Re: cvs: phpdoc /en/functions sockets.xml
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969340979@lists.php.net to get a copy of this message
> > Can we please agree that a function whose primary return > > type is LONG/STRING/ARRAY/RESOURE/OBJECT and which may return > > FALSE/NULL _only_ in error condition has _not_ a mixed return > > value but has listed only its primary return value. > > > > Its less intuitive for users "mixed? was it now int or > > string.. or even array ?" but it rather makes sense that > > almost all functions return NULL/FALSE when encountering > > error conditions without setting the return type to mixed > > explicitely. > > +1 +1 Added to conventions in the howto. Also added a note about using &return.success; in TRUE/FALSE only cases. Goba

« previous php.doc (#969340979) next »