Re: Reusing PHP string value pointers
| From: | George Schlossnagle | Date: | Thu, 28 Nov 2002 22:09:34 +0000 |
| Subject: | Re: Reusing PHP string value pointers | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91887@lists.php.net to get a copy of this message | ||
Or use the overload extension in ZE1. The real question is why you really need/want to do this.
George
On Thursday, November 28, 2002, at 04:37 PM, l0t3k wrote:
if you have the option of using ZE2, make the thing an object and use the property get/set handlers to take care of things for you.... "Marshall A. Greenblatt" <marshall@magpcss.com> wrote in message news:000d01c296fe$b0ff82f0$6601a8c0@Marshall...From: "Zeev Suraski" <zeev@zend.com>thetoWhen a PHP string variable is changed via a PHP script, such as: $foo = 'new value'; what happens to the `value.str.val' pointer internally? Is it possiblehave the new value assigned to the same `value.str.val' pointer thatavariable is currently using instead of having that pointer replaced byWouldWhat about being able to register a callback function for variable assignment? That way I can keep track of the pointer myself and copy the new value to it when the variable value is changed in the PHP script.pointer to the new value?No, it's not possible (not in a reliable way anyway).anybody else be interested in this functionality?-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.phpZeevThanks, Marshall