Re: Calling symbol table patch
| From: | Sterling Hughes | 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:
Attachment: [application/octet-stream] get_defined_diff
On Tue, 21 Nov 2000, Sterling Hughes wrote: /* {{{ proto array get_defined_vars(void)Attached is the patch for Zend, for someone with commit access. -SterlingReturns an associative array of names and values of all currentlydefined 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. :)
Attachment: [application/octet-stream] get_defined_diff