Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array equal Array #112

Open
Iris92 opened this issue Feb 25, 2023 · 1 comment
Open

Array equal Array #112

Iris92 opened this issue Feb 25, 2023 · 1 comment

Comments

@Iris92
Copy link

Iris92 commented Feb 25, 2023

Hello
Very nice class ;))
One thing is not working :
$_POST['b'] = $_POST['a']; // $_POST['a'] as an array
I had to replace my code with :
$_POST['b'] = array_replace([], $_POST['a']);
May be a small bug ;))
Thanks

@KminekMatej
Copy link

$_POST["a"] = $_POST["\x61"];

gets obfuscated as one of the followings:
$_POST["\142"] = $_POST["\x61"];
or
$_POST["\142"] = $_POST["\x61"];
or
$_POST["\x62"] = $_POST["\x61"];
etc..

All of these notations are valid string representations (tried to make some example here: https://onlinephp.io/c/09335)
You can write strings escaped in octal sequence or hexadecimal equence, which all are perfectl valid notations for string: https://www.php.net/manual/en/language.types.string.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants