Doc #55683 [Opn->Csd]: sqlsrv_rows_affected return type

From: Date: Tue, 13 Sep 2011 18:28:12 +0000
Subject: Doc #55683 [Opn->Csd]: sqlsrv_rows_affected return type
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7188@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55683&edit=1 ID: 55683 Updated by: nikic@php.net Reported by: gwarnants at gmail dot com Summary: sqlsrv_rows_affected return type -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-09-13 18:24:20] nikic@php.net Automatic comment from SVN on behalf of nikic Revision: http://svn.php.net/viewvc/?view=revision&revision=316680 Log: Fix Doc Bug #55683: sqlsrv_rows_affected return type ------------------------------------------------------------------------ [2011-09-13 14:05:11] gwarnants at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.sqlsrv-rows-affected%23Description --- I can read in the manual that sqlsrv_rows_affected will return the number of affected rows, 0 if none, or -1 is undeterminate, or False if an error occured. So I expected to see "int" as the return type in the prototype (refering for example to mysql_affected_rows which is quite similar) but it is "mixed". Expected result: ---------------- int sqlsrv_rows_affected ( resource $stmt ) Actual result: -------------- mixed sqlsrv_rows_affected ( resource $stmt ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55683&edit=1

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