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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 08:00:02 2026 UTC