|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-05-23 07:04 UTC] requinix@php.net
-Status: Open
+Status: Duplicate
-Package: PHP Language Specification
+Package: Scripting Engine problem
[2017-05-23 07:04 UTC] requinix@php.net
[2017-05-23 08:07 UTC] spam2 at rhsoft dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ in php.ini,popen function is in disable functions: disable_functions => passthru,system,popen,chroot,escapeshellcmd,proc_get_status => passthru,system,popen,chroot,escapeshellcmd,proc_get_status function_exists('popen') return false,but when call popen, php only give a notice,but not throw a fatal error。 Test script: --------------- <?php error_reporting(E_ALL); ini_set('display_errors','on'); var_dump(function_exists('popen'));//false $handle = popen("/bin/ls", "r");//null Warning: popen() has been disabled for security reasons in var_dump($handle); echo gettype($handle); Expected result: ---------------- when popen function is called,php should throw a fatal error。