|
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-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Feb 06 00:00:02 2026 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)