Bug #77079 [Opn->Csd]: odbc_fetch_object has incorrect type signature

From: Date: Mon, 29 Oct 2018 23:24:47 +0000
Subject: Bug #77079 [Opn->Csd]: odbc_fetch_object has incorrect type signature
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217743@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77079&edit=1 ID: 77079 Updated by: petk@php.net Reported by: jonathan dot allen at realtruck dot com Summary: odbc_fetch_object has incorrect type signature -Status: Open +Status: Closed Type: Bug Package: ODBC related PHP Version: 7.2.11 Block user comment: N Private report: N New Comment: Automatic comment on behalf of jallen@realtruck.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=8775bead3acf436e2f5da6049ef21d64c77d9f82 Log: fix bug #77079 Previous Comments: ------------------------------------------------------------------------ [2018-10-29 12:59:18] jonathan dot allen at realtruck dot com Description: ------------ As seen in the documentation, odbc_fetch_object should take a resource for it's first parameter. http://php.net/manual/fr/function.odbc-fetch-object.php However it's type signature claims an integer https://github.com/php/php-src/blob/9003d8a4cfe810b9222273a36b9be89dda94a35b/ext/odbc/php_odbc.c#L1841 This causes static analyzers such as psalm to incorrectly flag bugs in user scripts, when the actual bug is with php. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77079&edit=1

« previous php.bugs (#217743) next »