|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-23 00:58 UTC] felipe@php.net
[2007-11-25 10:31 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 05:00:01 2025 UTC |
Description: ------------ The code below shows the issue. Reproduce code: --------------- <?php $this->bug = 'PHP Should not allow assignment of $this properties when used outside a class'; class A { function B() { } } A::B(); ?> Expected result: ---------------- The engine should throw an error because setting a property on the $this object is senseless. Actual result: -------------- Warning: Problem with method call - please report this bug in xxx.php on line xx