ID:               15101
 Comment by:       codeslinger at compsalot dot com
 Reported By:      tom dot polak at post dot sk
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Solaris
 PHP Version:      4.1.0
 New Comment:

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...


Previous Comments:
------------------------------------------------------------------------

[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:[email protected]

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15101&edit=1

Reply via email to