Skip to content

Conversation

huncrys
Copy link

@huncrys huncrys commented Mar 12, 2025

According to upstream sources a sign (+, -) is accepted before the length: https://github.com/php/php-src/blob/PHP-5.4.45/ext/standard/var_unserializer.re#L260-L266

So it is possible to circumvent the polyfill by manually adding it, i.e.:

O:9:"Exception" vs O:+9:"Exception"

According to upstream sources a sign (`+`, `-`) is accepted before the length:
https://github.com/php/php-src/blob/PHP-5.4.45/ext/standard/var_unserializer.re#L260-L266

So it is possible to circumvent the polyfill by manually adding it, i.e.:

`O:9:"Exception"` vs `O:+9:"Exception"`
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

Successfully merging this pull request may close these issues.

1 participant