php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79645 ReflectionClass::isInstance() returns NULL for non-object parameter
Submitted: 2020-05-28 07:43 UTC Modified: 2020-05-28 07:51 UTC
From: kukulich at kukulich dot cz Assigned: nikic (profile)
Status: Closed Package: Reflection related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2020-05-28 07:43 UTC] kukulich at kukulich dot cz
Description:
------------
ReflectionClass::isInstance() returns NULL for non-object parameter

Test script:
---------------
https://3v4l.org/J1jl9

Expected result:
----------------
FALSE

Actual result:
--------------
NULL

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-05-28 07:51 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2020-05-28 07:51 UTC] nikic@php.net
ZPP failure, throws TypeError in PHP 8.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 01:01:28 2024 UTC