Re: Calling symbol table patch

From: Date: Tue, 21 Nov 2000 15:22:02 +0000
Subject: Re: Calling symbol table patch
References: 1 2 3 4 5 6  Groups: php.dev 
Request: Send a blank email to php-dev+get-38831@lists.php.net to get a copy of this message
At 09:00 AM 11/21/2000 -0600, Andrei Zmievski wrote:
On Tue, 21 Nov 2000, Sterling Hughes wrote: /* {{{ proto array get_defined_vars(void)
    Returns an associative array of names and values of all currently
defined variable names (variables in the current scope) */ ZEND_FUNCTION(get_defined_vars) {
         zval *tmp;
         array_init(return_value);
         zend_hash_copy(return_value->value.ht, EG(active_symbol_table),
                                  (copy_ctor_func_t)zval_add_ref, &tmp,
sizeof(zval *)); } /* }}} */ Just do it. :)
Attached is the patch for Zend, for someone with commit access. -Sterling

Attachment: [application/octet-stream] get_defined_diff
« previous php.dev (#38831) next »