|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-19 11:58 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 06:00:01 2025 UTC |
Description: ------------ is_a() don't recognize class name. Reproduce code: --------------- <?php namespace A; class foobar { public function test() { } } $x = new foobar(); var_dump(is_a($x, 'foobar')); var_dump(is_a($x, 'A::foobar')); var_dump(is_a($x, '::foobar')); Expected result: ---------------- bool(true) bool(true) bool(true) Actual result: -------------- bool(false) bool(true) bool(false)