foo();
?>
--EXPECTF--
+Deprecated: mb_parse_str(): Calling mb_parse_str() without the result argument is deprecated in %s on line %d
+
Fatal error: Uncaught Error: Cannot re-assign $this in %sthis_in_mb_parse_str.php:3
Stack trace:
#0 %sthis_in_mb_parse_str.php(3): mb_parse_str('this=42')
return;
}
+ php_error_docref(NULL, E_DEPRECATED, "Calling mb_parse_str() without the result argument is deprecated");
+
symbol_table = zend_rebuild_symbol_table();
ZVAL_ARR(&tmp, symbol_table);
detected = _php_mb_encoding_handler_ex(&info, &tmp, encstr);
var_dump($test);
?>
--EXPECT--
+ERR: Deprecated
bool(true)
string(0) ""
+ERR: Deprecated
bool(true)
string(3) "moo"
1024=> "User Notice", // E_USER_NOTICE
2048=> "Strict Notice", // E_STRICT
4096=> "Recoverable fatal error", // E_RECOVERABLE_ERROR
+ 8192=> "Deprecated", // E_DEPRECATED
);
if (!empty($debug)) {
test($query);
}
?>
---EXPECT--
+--EXPECTF--
array(2) {
["foo"]=>
string(3) "abc"
}
string(0) ""
string(0) ""
+
+Deprecated: mb_parse_str(): Calling mb_parse_str() without the result argument is deprecated in %s on line %d
string(3) "abc"
string(3) "def"
array(2) {
}
string(0) ""
string(0) ""
+
+Deprecated: mb_parse_str(): Calling mb_parse_str() without the result argument is deprecated in %s on line %d
string(0) ""
string(0) ""
array(2) {
}
string(0) ""
string(0) ""
+
+Deprecated: mb_parse_str(): Calling mb_parse_str() without the result argument is deprecated in %s on line %d
array(3) {
[0]=>
string(3) "abc"
test($query);
}
?>
---EXPECT--
+--EXPECTF--
array(3) {
["foo"]=>
string(3) "abc"
string(0) ""
string(0) ""
string(0) ""
+
+Deprecated: mb_parse_str(): Calling mb_parse_str() without the result argument is deprecated in %s on line %d
string(3) "abc"
string(3) "def"
string(3) "ghi"
string(0) ""
string(0) ""
string(0) ""
+
+Deprecated: mb_parse_str(): Calling mb_parse_str() without the result argument is deprecated in %s on line %d
string(0) ""
string(0) ""
string(0) ""
string(0) ""
string(0) ""
string(0) ""
+
+Deprecated: mb_parse_str(): Calling mb_parse_str() without the result argument is deprecated in %s on line %d
array(4) {
[0]=>
string(3) "abc"