Doc #60700 [Opn->Bgs]: Confusing function return type

From: Date: Wed, 11 Jan 2012 02:47:01 +0000
Subject: Doc #60700 [Opn->Bgs]: Confusing function return type
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7766@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60700&edit=1 ID: 60700 Updated by: frozenfire@php.net Reported by: adrian at foeder dot de Summary: Confusing function return type -Status: Open +Status: Bogus Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: This isn't an error. It's standard to indicate the "working" return value in the function prototype, and indicate "or false on failure" in the return values section. Previous Comments: ------------------------------------------------------------------------ [2012-01-10 16:03:07] adrian at foeder dot de Description: ------------ --- From manual page: http://www.php.net/function.preg-match#refsect1-function.preg-match-description --- The description says this function would return "int" only, while the Return Values section says it could return FALSE also. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60700&edit=1

« previous php.doc.bugs (#7766) next »