xref: /PHP-7.2/ext/mbstring/tests/bug20087.phpt (revision f1d7e3ca)
1--TEST--
2Bug #20087 (Assertion failure)
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FAIL--
6register_globals calls killed the ability for mb_parse_str() to register into the global scope
7--FILE--
8<?php
9ini_set('include_path', dirname(__FILE__));
10include_once('common.inc');
11$testmoo = "blah blah";
12var_dump(mb_parse_str("testmoo"));
13var_dump($testmoo);
14var_dump(mb_parse_str("test=moo"));
15var_dump($test);
16?>
17--EXPECT--
18ERR: Deprecated
19bool(true)
20string(0) ""
21ERR: Deprecated
22bool(true)
23string(3) "moo"
24