Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85490 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19935 invoked from network); 27 Mar 2015 02:58:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2015 02:58:07 -0000 Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.49 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:33811] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/D7-00585-437C4155 for ; Thu, 26 Mar 2015 21:57:59 -0500 Received: by lagg8 with SMTP id g8so60611797lag.1 for ; Thu, 26 Mar 2015 19:57:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=nB+dlXYl5YJ7pSk6mxdm3Ehl/hnSt9QN93CCM1r1nNk=; b=WFLBpFkhR09wy/jUqfHcBqRRk7jJHVTkWEDQzcEziXxMu4xBgIjKbsadrMIr9ImWoj 10/VlvJ1NpC9IKV79ku4w0eX16wQj5U+13b1sIwk+L4+WPwCU4iy7WwfANEQc1RONDAS PDR1EiyyEa921oH8V+fUhcfhjVYDOeDWnZ8K8RlJ5OnkrjtIuiIeunbeih40VQx6fr4v WCPtDSGyYYl9NmYjCtz2I/dLJp50irlGAFMxeBvxNjzp6NjWkKMWPgzcxJq0rCBWz+Dm 5EC8x4J6S4pqyUolUL8AsTHn8sF+POM5EX5A/zCM2G9sYOe6NXX8NqgmeJfrigcOwJr0 sjaw== X-Gm-Message-State: ALoCoQnwaD89UqstfzysuX4RbYiID9DXu/dWECi8JI1wfq2GNpTpDe8q2s1Gv8n42r9+e8WDz3licNnV8OKZEAO22/oGXAfYSEc1/9pFt5ljjaov8mY5bYlqiVf5GzJURieAVGpd3W04WDas4/SRenvOHf5widO/Yw== X-Received: by 10.152.245.41 with SMTP id xl9mr15898066lac.24.1427425073463; Thu, 26 Mar 2015 19:57:53 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPSA id k2sm101613lag.9.2015.03.26.19.57.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2015 19:57:52 -0700 (PDT) Received: by lbbzt2 with SMTP id zt2so2216681lbb.1 for ; Thu, 26 Mar 2015 19:57:51 -0700 (PDT) X-Received: by 10.152.198.8 with SMTP id iy8mr16155422lac.13.1427425071377; Thu, 26 Mar 2015 19:57:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.203.39 with HTTP; Thu, 26 Mar 2015 19:57:31 -0700 (PDT) In-Reply-To: References: <55142689.2080106@fedoraproject.org> Date: Fri, 27 Mar 2015 10:57:31 +0800 Message-ID: To: Kalle Sommer Nielsen Cc: Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] is_callable and function_exists with disable_functions From: laruence@php.net (Xinchen Hui) Hey: On Fri, Mar 27, 2015 at 3:06 AM, Kalle Sommer Nielsen wrote: > Forgot to CC list > > > ---------- Forwarded message ---------- > From: Kalle Sommer Nielsen > Date: 2015-03-26 20:06 GMT+01:00 > Subject: Re: [PHP-DEV] is_callable and function_exists with disable_functions > To: Remi Collet > > > 2015-03-26 16:32 GMT+01:00 Remi Collet : >>> 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/