Re: is_callable and function_exists with disable_functions

From: Date: Fri, 27 Mar 2015 02:57:31 +0000
Subject: Re: is_callable and function_exists with disable_functions
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-85490@lists.php.net to get a copy of this message
Hey: On Fri, Mar 27, 2015 at 3:06 AM, Kalle Sommer Nielsen <kalle@php.net> wrote: > Forgot to CC list > > > ---------- Forwarded message ---------- > From: Kalle Sommer Nielsen <kalle@php.net> > Date: 2015-03-26 20:06 GMT+01:00 > Subject: Re: [PHP-DEV] is_callable and function_exists with disable_functions > To: Remi Collet <remi@fedoraproject.org> > > > 2015-03-26 16:32 GMT+01:00 Remi Collet <remi@fedoraproject.org>: >>> do you mind if I change the current behavior of is_callable , to >>> return false on this case? >> >> Make sense >> >>> or, at least, change function_exists's behavior instead? >> >> Seems a bad idea. > > I agree with both points here, I think is_callable() should mimic > function_exists() behavior, is this the same case for disable_classes? > yeah. but a little bit different class_exists return trun with disabled classes :< $ sapi/cli/php -d disable_classes=ArrayObject -r "var_dump(class_exists('arrayobject')); new ArrayObject(); " bool(true) PHP Warning: ArrayObject() has been disabled for security reasons in Command line code on line 1 Warning: ArrayObject() has been disabled for security reasons in Command line code on line 1 thanks > > -- > regards, > > Kalle Sommer Nielsen > kalle@php.net > > > -- > regards, > > Kalle Sommer Nielsen > kalle@php.net > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- Xinchen Hui @Laruence http://www.laruence.com/

« previous php.internals (#85490) next »