Bug #69315 [Asn->Csd]: disable_functions behaviors inconsistently
Edit report at https://bugs.php.net/bug.php?id=69315&edit=1
ID: 69315
Updated by: laruence@php.net
Reported by: laruence@php.net
Summary: disable_functions behaviors inconsistently
-Status: Assigned
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: Irrelevant
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=84d9426730fc1e7063cdc4fb0c25f8f382202431
Log: Fixed bug #69315
Previous Comments:
------------------------------------------------------------------------
[2015-03-27 06:43:52] laruence@php.net
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
------------------------------------------------------------------------
[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)