#40722 [NEW]: future request:add "safe eval" function
| From: | shimon at schoolportal dot co dot il | Date: | Mon, 05 Mar 2007 05:56:47 +0000 |
| Subject: | #40722 [NEW]: future request:add "safe eval" function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-109889@lists.php.net to get a copy of this message | ||
From: shimon at schoolportal dot co dot il
Operating system: na
PHP version: 4.4.5
PHP Bug Type: Feature/Change Request
Bug description: future request:add "safe eval" function
Description:
------------
i would be cool to have a "safe eval" function
for example:
eval($code, $safe=true,$safe_alow,$safe_disalow ,or $safe_ini_settings);
i do want users to insert some code to use database and simple php
in their free web site to create info boxes and small website components
or php in their site templates. but i want to stay safe.
--
Edit bug report at http://bugs.php.net/?id=40722&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40722&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40722&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40722&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40722&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40722&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40722&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40722&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40722&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40722&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40722&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40722&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40722&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40722&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40722&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40722&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40722&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40722&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40722&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40722&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40722&r=mysqlcfg