Re: Extending 'include' behavior in a function
| From: | Jochem Maas | Date: | Thu, 11 Jan 2007 11:45:07 +0000 |
| Subject: | Re: Extending 'include' behavior in a function | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246902@lists.php.net to get a copy of this message | ||
Roman Neuhauser wrote:
> # jochem@iamjochem.com / 2007-01-11 09:47:04 +0100:
>> Eli wrote:
>>> [extending include]
>>>
>>> Your solution is good when you know what variables you want to transfer
>>> ahead, and then make a list of them. But if I want to transfer all the
>>> variables in the current environment scope?
>
>> as it stands I get the feeling your on the road to nowhere regarding
>> this particular idea, php just doesn't offer the functionality you
>> require.
>
> Besides being technically infeasible, it wouldn't even be very useful
> AFAICS (put bluntly: smells like a hackaround for a very bad design).
I would tend to agree, all the more reason for the OP to explain wtf he is
actually trying to accomplish and why - then we can spread the goodness with
regard to jimmying up a better strategy :-)
>