xref: /PHP-7.1/ext/mbstring/tests/bug20087.phpt (revision 113213f0)
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--
18bool(true)
19string(0) ""
20bool(true)
21string(3) "moo"
22