Browse Source

MFH: - Fixed bug #34311 (unserialize() crashes with characters above 191 dec)

PHP-5.1
foobar 21 years ago
parent
commit
020f1ba949
  1. 1
      NEWS
  2. 2
      ext/standard/var_unserializer.re

1
NEWS

@ -23,6 +23,7 @@ PHP NEWS
- Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems.
(Andrey)
- Fixed bug #34331 (php crashes when variables_order is empty). (Ilia)
- Fixed bug #34311 (unserialize() crashes with chars above 191 dec). (Nuno)
- Fixed bug #34310 (foreach($arr as $c->d => $x) crashes). (Dmitry)
- Fixed bug #34307 (on_modify handler not called to set the default value if
setting from php.ini was invalid). (Andrei)

2
ext/standard/var_unserializer.re

@ -150,7 +150,7 @@ uiv = [+]? [0-9]+;
iv = [+-]? [0-9]+;
nv = [+-]? ([0-9]* "." [0-9]+|[0-9]+ "." [0-9]*);
nvexp = (iv | nv) [eE] [+-]? iv;
any = [\000-\277];
any = [\000-\377];
object = [OC];
*/

Loading…
Cancel
Save