php-developer-list | 2002112
Date: 11/28/02
- Next message: George Schlossnagle: "Re: [PHP-DEV] Reusing PHP string value pointers"
- Previous message: James Cox: "RE: [PHP-DEV] New vpopmail extension for PHP"
- In reply to: Marshall A. Greenblatt: "Re: [PHP-DEV] Reusing PHP string value pointers"
- Next in thread: George Schlossnagle: "Re: [PHP-DEV] Reusing PHP string value pointers"
- Reply: George Schlossnagle: "Re: [PHP-DEV] Reusing PHP string value pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>> wrote in message
news:000d01c296fe$b0ff82f0$6601a8c0 <email protected>
> From: "Zeev Suraski" <zeev <email protected>>
> > >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).
>
> What 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.
Would
> anybody else be interested in this functionality?
>
> >
> > Zeev
> >
>
> Thanks,
> Marshall
>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: George Schlossnagle: "Re: [PHP-DEV] Reusing PHP string value pointers"
- Previous message: James Cox: "RE: [PHP-DEV] New vpopmail extension for PHP"
- In reply to: Marshall A. Greenblatt: "Re: [PHP-DEV] Reusing PHP string value pointers"
- Next in thread: George Schlossnagle: "Re: [PHP-DEV] Reusing PHP string value pointers"
- Reply: George Schlossnagle: "Re: [PHP-DEV] Reusing PHP string value pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

