|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2009-11-11 18:52 UTC] svn@php.net
  [2009-11-11 18:53 UTC] felipe@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ This change looks to be introduced accidentaly in HEAD, and was MFHd by me times ago. the hasProperty() is currently using the __isset magic method, this doesn't look right from a reflection perspective. It must behaves like property_exists() that doesn't uses the magic stuff. Reproduce code: --------------- <?php class foo { function __isset($a) { var_dump($a); return 1; } } $x = new foo; $ref = new ReflectionObject($x); var_dump($ref->hasProperty('b')); Expected result: ---------------- bool(false) Actual result: -------------- string(1) "b" bool(true)