Fix Bug #80972: Memory exhaustion on invalid string offset#6890
Fix Bug #80972: Memory exhaustion on invalid string offset#6890Girgias wants to merge 1 commit intophp:PHP-8.0from
Conversation
|
I just realized that this might actually impact PHP 7 if an error_handler has been set to throw exceptions on warnings. |
|
There's some test failures... |
|
https://wiki.php.net/rfc/saner-numeric-strings //Bad $string[(string) 10e120] = 'E'; ?>` undoubtedly the error should not cause php to block but be captured by the syntax. |
Sorry what? I don't understand what you mean. |
|
https://bugs.php.net/bug.php?id=80972 |
|
I still do not understand what you're getting at? Are you talking about a simpler reproducible? In that case provide one via https://3v4l.org, but I know it is not just large float string where this is an issue, if you look at the test I amended it with a simpler case. But I only found this issue because of the memory exhaustion hence the bug title. |
|
https://3v4l.org/RaPYR#output |
|
Yeah that's completely unrelated, an array can have string keys so I really don't see where the issue is. |
|
https://www.php.net/manual/en/language.types.array.php#language.types.array.syntax.modifying |
|
"Warning: Illegal string offset" has nothing to do with arrays, but rather with strings, as your example above clearly shows. |
|
Hi Hormus, There appears to be a communication problem here; we can't really figure out what the problem is you are trying to describe. If English isn't your native language, please write the issue you think exists in your native language, as there's a good chance we might be able to understand that. |
|
http://docs.php.net/manual/da/language.types.array.php |
No description provided.