From: [EMAIL PROTECTED]
Operating system: Win2k
PHP version: 4.0.4pl1
PHP Bug Type: *General Issues
Bug description: $this can't be passed by reference inside of constructor
the following code-snippet illustrated the problem:
-
class a
{
var $bla; // some intvalue
ID: 8740
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *General Issues
Description: $this can't be passed by reference inside of constructor
no, that's the opposite of what i wanna get.
$this-b = new b($this); is instancing and assigning a new object of type b
ID: 8740
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: *General Issues
Description: $this can't be passed by reference inside of constructor
works, but still a bit clumsy.
thanks for the help.
Previous Comments: