Re: Reusing PHP string value pointers

From: Date: Thu, 28 Nov 2002 08:45:27 +0000
Subject: Re: Reusing PHP string value pointers
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-91858@lists.php.net to get a copy of this message
At 02:50 28/11/2002, Marshall A. Greenblatt wrote:
Apologies in advance if this is the wrong mailing list. Please direct me to a more appropriate mailing list if there is one :-) When 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 possible to have the new value assigned to the same `value.str.val' pointer that the variable is currently using instead of having that pointer replaced by a pointer to the new value?
No, it's not possible (not in a reliable way anyway). Zeev

« previous php.dev (#91858) next »