|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77079 odbc_fetch_object has incorrect type signature
Submitted: 2018-10-29 12:59 UTC Modified: 2018-10-29 14:12 UTC
From: jonathan dot allen at realtruck dot com Assigned:
Status: Closed Package: ODBC related
PHP Version: 7.2.11 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: jonathan dot allen at realtruck dot com
New email:
PHP Version: OS:


 [2018-10-29 12:59 UTC] jonathan dot allen at realtruck dot com
As seen in the documentation, odbc_fetch_object should take a resource for it's first parameter.

However it's type signature claims an integer

This causes static analyzers such as psalm to incorrectly flag bugs in user scripts, when the actual bug is with php.


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-29 14:12 UTC]
-Package: Reflection related +Package: ODBC related
 [2018-10-29 23:24 UTC]
Automatic comment on behalf of
Log: fix bug #77079
 [2018-10-29 23:24 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Sep 30 09:05:53 2022 UTC