Re: Extending PHP: References and Pointers

From: Date: Sun, 10 Sep 2000 07:56:38 +0000
Subject: Re: Extending PHP: References and Pointers
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-32812@lists.php.net to get a copy of this message
AC>> I've got the following problem: Writing a PHP Extension I'd like do pass AC>> a reference of a class created in PHP to a function of the new extension: AC>> AC>> <?php AC>> $Class = new CClass; AC>> AC>> $mymodule_addRef(&$Class); AC>> ?> Don't use call-time references. It's deprecated behaviour and it is not guaranteed to work, AFAIK. You can see how to work from references by examples of existing module, e.g. XML module. -- Stanislav Malyshev stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106

« previous php.dev (#32812) next »