php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
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.


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-29 14:12 UTC] petk@php.net
-Package: Reflection related +Package: ODBC related
 [2018-10-29 23:24 UTC] petk@php.net
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
 [2018-10-29 23:24 UTC] petk@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC