#18864 [NEW]: Nested Function within a class
| From: | fathireza at yahoo dot com | Date: | Mon, 12 Aug 2002 08:07:52 +0000 |
| Subject: | #18864 [NEW]: Nested Function within a class | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16530@lists.php.net to get a copy of this message | ||
From: fathireza@yahoo.com
Operating system: NT2000
PHP version: 4.2.2
PHP Bug Type: Class/Object related
Bug description: Nested Function within a class
Hello,
I have no access to "this variable" within the nested function.
class A{
var someX;
function b()
{
function c()
{
$this->someX=1;
//Error this variable unknow here
}
}
}
Best regards...
R. Fathi
--
Edit bug report at http://bugs.php.net/?id=18864&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18864&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18864&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18864&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18864&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18864&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18864&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18864&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18864&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18864&r=globals