|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-03 17:03 UTC] giunta dot gaetano at sea-aeroportimilano dot it
Description:
------------
It seems like php 5.1.4 does not like an assignment to variable '$this', regardless of the scope:
- objet method
- function
- global
Is this a real necessity or just a plain old bug???
Reproduce code:
---------------
<?php
function that($it){
$this = '';
}
?>
or
<?php
$this = '';
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 06:00:01 2025 UTC |
This is a real necessity, since you can do <?php class test { function foo () { include "test.php"; }} ?> and reassign $this in test.php.