Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85474 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66352 invoked from network); 26 Mar 2015 15:28:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2015 15:28:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.48 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.48 mail-la0-f48.google.com Received: from [209.85.215.48] ([209.85.215.48:35091] helo=mail-la0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/00-00585-38524155 for ; Thu, 26 Mar 2015 10:28:05 -0500 Received: by lahp7 with SMTP id p7so29507546lah.2 for ; Thu, 26 Mar 2015 08:28:00 -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:from:date:message-id:subject:to :content-type; bh=yY5XqiqjbDeUOP3i8gEMxebg9B5b4Ly98XDPXA8Al9w=; b=PY/FsqeluoUmTLi/GN+Jx2boNFhWroYUCgBxtGKusUbeDS32N5JANXOj5P1X9SXV0G oaCk4BybFWCgk0NrjGOUU4DpVPLd4oIz7o1SErCg7jZ7KThuchhP/3ML2ViBhf2Jda7k 15MdYhYXTtpvt6GAgDCKwcCwijz+3ljuG1uozn3dT4LN91iyetEum9uBb+mDlR0tHC+T Mi3g5xfJ53azlEeQcmVuihrrgZcARGI1WXnx7BN6NMf3YEymN6EtORJoBEj1b+TNkkOf LeTeFEbS/c5P6Q3eORwvlkoHDWaAMKP5jyziZz4RwX2zW3BEaS94FPTVjWV8nFv7IEe8 +N5w== X-Gm-Message-State: ALoCoQlg/bVKC6QOYTc22XIAVUfT+59LM8JUCzUli1VXW8CDwxncR7F3Z/KtYlQpLBhVg+N059QNdLBcMnFrDJbY2GTSMlI4Jk0Y86cpftaO9xqfE7c8erCfR9KDwO4XeD3tTLxpJEgtigbhhuQ6E5WpQHkeaxxSyg== X-Received: by 10.152.120.202 with SMTP id le10mr13490526lab.115.1427383322164; Thu, 26 Mar 2015 08:22:02 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPSA id ao5sm1311348lac.48.2015.03.26.08.22.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2015 08:22:01 -0700 (PDT) Received: by lbcmq2 with SMTP id mq2so43500066lbc.0 for ; Thu, 26 Mar 2015 08:21:59 -0700 (PDT) X-Received: by 10.112.210.201 with SMTP id mw9mr13881234lbc.13.1427383319697; Thu, 26 Mar 2015 08:21:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.203.39 with HTTP; Thu, 26 Mar 2015 08:21:39 -0700 (PDT) Date: Thu, 26 Mar 2015 23:21:39 +0800 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: is_callable and function_exists with disable_functions From: laruence@php.net (Xinchen Hui) Hey Internal: there is one confused behavior with disable_functions: $ sapi/cli/php -n -d disable_functions=strlen -r 'var_dump(function_exists("strlen")); var_dump(is_callable("strlen"));' bool(false) bool(true) as you can see, strlen is disabled by disable_functions. function_exisis tell it is not exists but is_callable said it is callable.. do you mind if I change the current behavior of is_callable , to return false on this case? or, at least, change function_exists's behavior instead? thanks -- Xinchen Hui @Laruence http://www.laruence.com/