Bug #69315 [NEW]: disable_functions behaviors inconsistently

From: Date: Fri, 27 Mar 2015 06:40:49 +0000
Subject: Bug #69315 [NEW]: disable_functions behaviors inconsistently
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191632@lists.php.net to get a copy of this message
From:             laruence
Operating system: 
PHP version:      Irrelevant
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:disable_functions behaviors inconsistently

Description:
------------
please see the test script

similar issue also exists in class_exists

and opcodefy to call_user_func etc

Test script:
---------------
<?php

var_dump(function_exists("strlen"));
var_dump(is_callable("strlen"));
var_dump(strlen("aaaa"));

?>


Expected result:
----------------
bool(false)
bool(false)
NULL

Actual result:
--------------
in PHP7:

bool(false)
bool(true)
int(4)



-- 
Edit bug report at https://bugs.php.net/bug.php?id=69315&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=69315&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=69315&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=69315&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=69315&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=69315&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=69315&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=69315&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=69315&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=69315&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=69315&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=69315&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=69315&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=69315&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69315&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=69315&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=69315&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=69315&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69315&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=69315&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=69315&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#191632) next »