Bug #52107 [Fbk->NoF]: Eval does not recognize local scope variables
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:34:20 +0000 |
| Subject: | Bug #52107 [Fbk->NoF]: Eval does not recognize local scope variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176869@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52107&edit=1
ID: 52107
Updated by: php-bugs@lists.php.net
Reported by: nick dot mitin at gmail dot com
Summary: Eval does not recognize local scope variables
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: Ubuntu 10.04 32bit
PHP Version: 5.3.2
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2011-11-15 15:51:15] felipe@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2010-06-17 08:26:33] nick dot mitin at gmail dot com
Description:
------------
Sometimes under undetermined conditions eval() does not see the local scope function variables.
$returnTo = $_SERVER['REQUEST_URI'];
eval('$this->content = "' .
$this->application->getTemplate('/admin/user/login/login') . '";');
Assuming that I have $returnTo variable inside a '/admin/user/login/login', I see the
"Notice: undefined variable $returnTo", while evaling it.
But, If I create a dummy function moo() and eval somthing there the notice is gone.
See whole listing for details.
Test script:
---------------
Whole listing: http://kinokapsula.artgorbunov.ru/bug.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=52107&edit=1