What potential issue could arise from using the ereg function in PHP, as seen in the provided code snippet?

Using the ereg function in PHP can lead to potential security vulnerabilities as it is deprecated and not recommended for use due to its lack of support for Unicode characters. To solve this issue, it is recommended to switch to the preg_match function, which provides more powerful regular expression capabilities and supports Unicode.

// Original code using ereg function
if (ereg('[0-9]+', $input)) {
    echo 'Input contains numbers';
}

// Updated code using preg_match function
if (preg_match('/[0-9]+/', $input)) {
    echo 'Input contains numbers';
}