Re: Calling symbol table patch

From: Date: Tue, 21 Nov 2000 14:29:58 +0000
Subject: Re: Calling symbol table patch
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-38823@lists.php.net to get a copy of this message
On Mon, 20 Nov 2000, Sterling Hughes wrote: > Maybe I explained it wrong (this timezone difference in italy is killing > me, I'm less coherent than usual), I meant it would just return the names of > all the variables in the global scope to keep compatibility but then return > the names and the contents of the variables in the current scope. The only > justification for this is not to break what little backwards compatibility > is neccessary, and the semantics just don't make sense to me... Your functions were introduced after 4.0.3. As far as I'm concerned, you can totally change the behavior of the function because it has not been released it. Secondly, I still maintain that get_defined_vars() should return current scope only - it is not simply a debugging tool, it is a way to get the whole symbol table to pass to another function, as in my case. Do not even mention the globals anywhere in that function. > You want to explain to an HTML coder learning PHP Zend's symbol tables and > how it relates, be my guest (I'll take the death by fire personally ;). I > think get_defined_vars() gives a clearer indication of what its supposed to > do (give me all of the currently defined variables). Then you've already confused HTML code by mentioning "global" vs. "current" scope variables. -Andrei Computer, if you don't open that exit hatch this moment I shall zap straight off to your major data banks and reprogram you with a very large axe. -- Douglas Adams / The Hitchhiker's Guide to the Galaxy

« previous php.dev (#38823) next »