Re: WDDX
| From: | Sascha Schumann | Date: | Thu, 07 Jan 1999 14:51:55 +0000 |
| Subject: | Re: WDDX | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-3372@lists.php.net to get a copy of this message | ||
On Thu, Jan 07, 1999 at 09:28:07AM -0500, Rasmus Lerdorf wrote:
> > Aren't names stored for parameters passed by reference?
>
> No, I don't think there is an easy way to get the variable name even when
> it is passed by reference. I'm still looking around for a way to get it.
> Stig or Zeev?
Maybe traversing the current active_symbol_table could help. Just wondering.
Pseudo code:
pval *arg, *data;
/* arg is a reference */
GetParameters(ht, 1, &arg);
for(hash_reset(some_symbol_table);
hash_get_current_data(ht, &data) && data != arg;
hash_move_forward(), data = NULL);
if(data) {
hash_get_current_key();
}
Correct, I have no clue how PHP works internally. :-)
--
Regards,
Sascha Schumann |
Consultant | finger sas@schell.de
| for PGP public key
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net