1--TEST--
2$this re-assign in mb_parse_str()
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7function foo() {
8	mb_parse_str("this=42");
9	var_dump($this);
10}
11foo();
12?>
13--EXPECTF--
14Deprecated: mb_parse_str(): Calling mb_parse_str() without the result argument is deprecated in %s on line %d
15
16Fatal error: Uncaught Error: Cannot re-assign $this in %sthis_in_mb_parse_str.php:3
17Stack trace:
18#0 %sthis_in_mb_parse_str.php(3): mb_parse_str('this=42')
19#1 %sthis_in_mb_parse_str.php(6): foo()
20#2 {main}
21  thrown in %sthis_in_mb_parse_str.php on line 3
22