|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-20 17:37 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 23:00:01 2026 UTC |
Description: ------------ insteanceof and get_class() don't play nice. The following line of code produces a parsing error. Reproduce code: --------------- <?php if ($a instanceof get_class($b)) { echo 'Yeah!'; } ?> Expected result: ---------------- Parsing fine Actual result: -------------- Parse error: parse error, unexpected '('