php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28849 "Cannot re-assign $this (...)" is comming while using a phpDocumentor
Submitted: 2004-06-20 00:30 UTC Modified: 2004-06-20 11:25 UTC
From: brego at bplusf dot net Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.0.0RC3 OS: Linux
Private report: No CVE-ID: None
 [2004-06-20 00:30 UTC] brego at bplusf dot net
Description:
------------
I know it could be a scripting issue, but I'm getting the same bug while using PEAR's Var_Dump. I don't realy understand the issue - maybey It's not eaven abug but a feauture - but then it is not documented...

Reproduce code:
---------------
Fatal error:  Cannot re-assign $this in /usr/local/lib/php/PhpDocumentor/phpDocumentor/ParserElements.inc on line 238


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-20 11:25 UTC] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Never try to change $this. That is very bad software design in PHP 4 and hence no longer working in PHP 5.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 20 14:03:39 2021 UTC