Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85475 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67940 invoked from network); 26 Mar 2015 15:32:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2015 15:32:34 -0000 Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 217.70.183.195 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 217.70.183.195 relay3-d.mail.gandi.net Received: from [217.70.183.195] ([217.70.183.195:37819] helo=relay3-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/50-00585-F8624155 for ; Thu, 26 Mar 2015 10:32:33 -0500 Received: from mfilter27-d.gandi.net (mfilter27-d.gandi.net [217.70.178.155]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id A973EA8111 for ; Thu, 26 Mar 2015 16:32:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter27-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter27-d.gandi.net (mfilter27-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id dj4lHrEIVb6L for ; Thu, 26 Mar 2015 16:32:25 +0100 (CET) X-Originating-IP: 82.241.130.121 Received: from schrodingerscat.famillecollet.com (pom51-2-82-241-130-121.fbx.proxad.net [82.241.130.121]) (Authenticated sender: contact@ll-experts.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id A4A95A8113 for ; Thu, 26 Mar 2015 16:32:25 +0100 (CET) Message-ID: <55142689.2080106@fedoraproject.org> Date: Thu, 26 Mar 2015 16:32:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] is_callable and function_exists with disable_functions From: remi@fedoraproject.org (Remi Collet) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 26/03/2015 16:21, Xinchen Hui a =C3=A9crit : > Hey Internal: >=20 > there is one confused behavior with disable_functions: >=20 > $ sapi/cli/php -n -d disable_functions=3Dstrlen -r=20 > 'var_dump(function_exists("strlen"));=20 > var_dump(is_callable("strlen"));' bool(false) bool(true) >=20 > as you can see, strlen is disabled by disable_functions. >=20 > function_exisis tell it is not exists but is_callable said it is=20 > callable.. >=20 > do you mind if I change the current behavior of is_callable , to=20 > return false on this case? Make sense > or, at least, change function_exists's behavior instead? Seems a bad idea. Remi. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlUUJokACgkQYUppBSnxahh+twCgs0dJR8Vt1Tj0VK/9kD0llrp0 OIsAn0uw9zd8fSY5mjbvEkTeh0Ehu2Zs =3DUe6n -----END PGP SIGNATURE-----