#40722 [Opn->Bgs]: future request:add "safe eval" function

From: Date: Mon, 05 Mar 2007 10:13:03 +0000
Subject: #40722 [Opn->Bgs]: future request:add "safe eval" function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109902@lists.php.net to get a copy of this message
ID: 40722 Updated by: tony2001@php.net Reported By: shimon at schoolportal dot co dot il -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: na PHP Version: 4.4.5 New Comment: I'm afraid we'll never go this route again. You have to manage privileges using your OS utilities, not PHP. Also, the meaining of "safety" is quite dim in this particular case, so I can't just imagine a function that would be safe _for everyone_ and useable _for everyone_ without having a bunch of arguments or INI options. Previous Comments: ------------------------------------------------------------------------ [2007-03-05 05:56:47] shimon at schoolportal dot co dot il 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 this bug report at http://bugs.php.net/?id=40722&edit=1

« previous php.bugs (#109902) next »