mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
24 lines
428 B
PHP
24 lines
428 B
PHP
--TEST--
|
|
Bug #72164 (Null Pointer Dereference - mb_ereg_replace)
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('mb_ereg')) die('skip mbregex support not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$var0 = "e";
|
|
$var2 = "";
|
|
$var3 = "";
|
|
try {
|
|
$var8 = mb_ereg_replace($var2,$var3,$var3,$var0);
|
|
var_dump($var8);
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Option "e" is not supported
|