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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 - 16 = ?
Subscribe to this entry?

 
 [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 May 03 06:01:30 2024 UTC