Re: About SUCCESS/FAILURE

From: Date: Wed, 24 Dec 2014 04:58:53 +0000
Subject: Re: About SUCCESS/FAILURE
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-79904@lists.php.net to get a copy of this message
Hi! > I think if(func()) is better, more readeable than if(func() == success) Not really, especially given the fact that for major part of libc if(func()) means checking for error, not for success, as success value is 0. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#79904) next »