Re: strange crash
| From: | Andrei Zmievski | Date: | Wed, 21 Nov 2001 19:49:45 +0000 |
| Subject: | Re: strange crash | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71301@lists.php.net to get a copy of this message | ||
On Wed, 21 Nov 2001, Chris Newbill wrote:
> Bingo!
>
> What is happening is I have PHP code that will eventually be pulled from
> a database, and some of them need to import the global scope (although I
> have changed this for security reasons). Only way to do this (easily)
> when eval'ing code is with extract($GLOBALS) or know which variables I
> want and pull them in one at a time. Well for prototyping the code is
> included in the file instead of being pulled from the DB.
>
> Here is the minimum script that will crash for me. Funny this used to
> work, I tried it as an experiment and when it worked I proceeded as if
> it would always work.
>
> <?php
>
> extract($GLOBALS);
>
> ?>
>
> Guess extract() doesn't like the recursion of $GLOBALS??
I don't get a crash with this..
-Andrei
"This isn't right. This isn't even wrong."
-- Wolfgang Pauli