|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-20 02:51 UTC] laruence@php.net
[2015-09-20 02:51 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2015-09-20 02:52 UTC] laruence@php.net
[2015-09-29 13:10 UTC] ab@php.net
[2016-07-20 11:36 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ In the script below there is a Foo\Bar class used in instanceof test inside assert(). When this assertion fails, warning/error is produced, but the class name is surrounded by apostrophes. Test script: --------------- <?php namespace Foo; class Bar {} assert(new \stdClass instanceof Bar); Expected result: ---------------- Warning: assert(): assert(new \stdClass() instanceof Bar) failed Actual result: -------------- Warning: assert(): assert(new \stdClass() instanceof 'Bar') failed