php-src/ext/mbstring/tests/bug20087.phpt

23 lines
517 B
Plaintext
Raw Normal View History

2011-09-11 03:55:08 +00:00
--TEST--
Bug #20087 (Assertion failure)
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
2011-09-11 12:12:48 +00:00
--FAIL--
2011-09-11 03:55:08 +00:00
register_globals calls killed the ability for mb_parse_str() to register into the global scope
--FILE--
<?php
ini_set('include_path', dirname(__FILE__));
include_once('common.inc');
$testmoo = "blah blah";
var_dump(mb_parse_str("testmoo"));
var_dump($testmoo);
var_dump(mb_parse_str("test=moo"));
var_dump($test);
?>
--EXPECT--
bool(true)
string(0) ""
bool(true)
string(3) "moo"