|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-19 13:28 UTC] helly@php.net
[2004-09-19 13:33 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 01:00:01 2025 UTC |
Description: ------------ isConstructor() should return true for child classes as well, but it does not. Reproduce code: --------------- <?php class t { function __construct(){} } class e extends t {} $a = new ReflectionMethod('t','__construct'); $b = new ReflectionMethod('e','__construct'); var_dump($a->isConstructor()); var_dump($b->isConstructor()); Expected result: ---------------- bool(true) bool(true) Actual result: -------------- bool(true) bool(false)