Req #15101 [Opn->Csd]: eval() in other context
| From: | jani@php.net | Date: | Wed, 29 Dec 2010 16:42:17 +0000 |
| Subject: | Req #15101 [Opn->Csd]: eval() in other context | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157384@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=15101&edit=1
ID: 15101
Updated by: jani@php.net
Reported by: tom dot polak at post dot sk
Summary: eval() in other context
-Status: Open
+Status: Closed
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Solaris
PHP Version: 4.1.0
-Assigned To:
+Assigned To: jani
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2009-12-18 21:58:55] codeslinger at compsalot dot com
this bug is really old, it can be closed now... as FIXED.
php now has at least two ways that you can accomplish this.
1) in php 5.3+ you can create a name space and do the eval inside of
it.
2) On windows you can use ActiveScript PHP and it will behave exactly as
you described for the behavior of SQLWindows.
or you could just exec or even popen an instance of php...
------------------------------------------------------------------------
[2002-01-18 09:45:05] tom dot polak at post dot sk
Hello,
my request is to improve function eval() to be possible evaluate given
string in other than current context.
In SQLWindows, where I have programming before, I have this feature and
was very useful.
It means, that on the some place in script we save "context" to be used
for evaluate and receive some "resource variable" to identify it.
Lately, we can call eval() with this additional parameter to be able
evaluate given string in previously saved context.
In SQLWindows I have used this to "bind" variables into dynamicaly
generated SQL statements, because they were generated inside some
functions library, where the current local variables are not in scope.
If it is not clear, I can give you more specification.
If you do not realize this feature, send me info, to be not waiting in
my project on it.
Looking forward to your answer.
Best regards,
Tomas Polak
mailto:tom.polak@post.sk
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=15101&edit=1