Edit report at https://bugs.php.net/bug.php?id=52107&edit=1

 ID:               52107
 Updated by:       [email protected]
 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] [email protected]

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

Reply via email to