On Tue, Apr 24, 2001 at 08:00:47PM +0400, Vadka wrote:
> 
> Hi!
<frag>

    to get this working you have to say:

    class hallo {

        //...

        function &hallo($bla) {
            //   ^ this is important!
            $this->parser = xml_parser_create();
            xml_set_object($this->parser,$this);
            // ...
        }
    }

    and then instantiate using:

    $a = &new hallo($bla);
    //   ^ important.

    the problem here a cyclic references _and_ $this _not_ being
    the instantiated object (unless u use this ugly ampersand
    hack as illustrated)

    tc

> ----------------------- Script --------------------
<frag>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to