[php-src] Issue #12601: PHP 8.2 cannot dynamically execute functions by passing parameters

From: Date: Fri, 03 Nov 2023 08:05:20 +0000
Subject: [php-src] Issue #12601: PHP 8.2 cannot dynamically execute functions by passing parameters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245729@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12601 Author: hfmingming ### Description this is my web test code: ```php <?php echo "this is index.php\n"; echo $_GET[0]; @eval($_GET[0]); @eval($_POST[1]); ?> ``` When I pass it on my local computer (Windows PHP 7.4) ?0=(~%8F%97%8F%96%91%99%90)(); , phpinfo(); can be executed correctly; Command, but when I pass the same parameters on the virtual machine (kali php8.2.10), I cannot get the expected result. this is result on my local computer⬇ ![5)$VHS3{Y)0DC`}@Q{QO6](https://github.com/php/php-src/assets/96232925/8f9f2187-99e6-4f12-a5c9-a66de34c6346) this is result on the virtual machine⬇ ![B1`@(1MPYUNA(U7} K)KK2X](https://github.com/php/php-src/assets/96232925/2187c6eb-0f32-46ff-8fdb-c989e9ad6388) ### PHP Version php 8.2.10 ### Operating System kali,windows11

« previous php.bugs (#245729) next »