note 89639 deleted from function.strpos by danbrown
| From: | danbrown@php.net | Date: | Tue, 17 Mar 2009 17:55:02 +0000 |
| Subject: | note 89639 deleted from function.strpos by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152053@lists.php.net to get a copy of this message | ||
Note Submitter: thomas at kappel dot com
Reason: useless
----
Lolz, they deleted both my posts even though only one of them infringed the rules for posting. Thank
you for deleting a post which partial purpose was to inform the PHP-programmers about a possible
bug.
Well, I guess I'll just have to report once again. The following is impossible:
class A
{
public function WriteName() { "Thomas" };
}
class B
{
public $A = new A(); // -or- public $A = new A;
public function B() { $this->A->WriteName(); }
}
The line causing the parse error is the "public $A" line, which by the way is completely
legal in the C language in which PHP is made.