|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-23 18:25 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2014-04-23 18:25 UTC] johannes@php.net
[2014-04-24 01:54 UTC] php at sunyanzi dot me
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 20:00:02 2025 UTC |
Description: ------------ function class_exists returns wrong result when a class used traits ... in clear way ... just see code below ... Test script: --------------- <?php var_dump( class_exists( 'baz' ) ); // true var_dump( class_exists( 'bar' ) ); // false trait foo { } class bar { use foo; } class baz { } var_dump( class_exists( 'bar' ) ); // true Expected result: ---------------- bool(true) bool(true) bool(true) Actual result: -------------- bool(true) bool(false) bool(true)