mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
23 lines
517 B
PHP
23 lines
517 B
PHP
--TEST--
|
|
Bug #20087 (Assertion failure)
|
|
--SKIPIF--
|
|
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
|
--FAIL--
|
|
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"
|
|
|