]> granicus.if.org Git - php/commit
Fix #78473: odbc_close() closes arbitrary resources
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 28 Aug 2019 15:51:57 +0000 (17:51 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 28 Aug 2019 15:55:15 +0000 (17:55 +0200)
commitb5572658166c4b8cbc1d332877a7a84c6e18a1c1
treee350827fb032559f051e7cfff9c2cfaaa0684665
parent88ab3746278c1e52aaba4dce264ae61431f94024
Fix #78473: odbc_close() closes arbitrary resources

We have to bail out, if an invalid resource is given.  For consistency
with the other `zend_fetch_resource(2)` calls, we return `FALSE`.
NEWS
ext/odbc/php_odbc.c
ext/odbc/tests/bug78473.phpt [new file with mode: 0644]