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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kukulich at kukulich dot cz
New email:
PHP Version: OS:

 

 [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: Fri Apr 26 20:01:29 2024 UTC