Bug #69315 [Com]: disable_functions behaviors inconsistently
Edit report at https://bugs.php.net/bug.php?id=69315&edit=1
ID: 69315
Comment by: laruence@php.net
Reported by: laruence@php.net
Summary: disable_functions behaviors inconsistently
Status: Assigned
Type: Bug
Package: Scripting Engine problem
PHP Version: Irrelevant
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
in PHP5 , the test script outputs:
bool(false)
bool(true)
PHP Warning: strlen() has been disabled for security reasons in /tmp/1.php on line 5
Warning: strlen() has been disabled for security reasons in /tmp/1.php on line 5
NULL
Previous Comments:
------------------------------------------------------------------------
[2015-03-27 06:40:46] laruence@php.net
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 this bug report at https://bugs.php.net/bug.php?id=69315&edit=1
Thread (3 messages)