Fatal error: Uncaught Error: Call to undefined function ereg()

Fatal error: Uncaught Error: Call to undefined function ereg()

我在 Centos 7.6 上使用 php v7.3.2。
升级前 php 版本为 5.4。
在 v 5.4 中我没有错误。
但是在 v 7.3.2 中我得到了这个错误:

Fatal error: Uncaught Error: Call to undefined function ereg() in /usr/local/IBSng/interface/xmlrpc/xmlrpc.inc:1307 Stack trace: #0 /usr/local/IBSng/interface/xmlrpc/xmlrpc.inc(1284): xmlrpcmsg->parseResponse('HTTP/1.0 200 OK...') #1 /usr/local/IBSng/interface/xmlrpc/xmlrpc.inc(931): xmlrpcmsg->parseResponseFile(Resource id #21) #2 /usr/local/IBSng/interface/xmlrpc/xmlrpc.inc(872): xmlrpc_client->sendPayloadHTTP10(Object(xmlrpcmsg), '127.0.0.1', '1235', 240, '', '') #3 /usr/local/IBSng/interface/IBSng/inc/xmlrpc.php(43): xmlrpc_client->send(Object(xmlrpcmsg), 240) #4 /usr/local/IBSng/interface/IBSng/inc/xmlrpc.php(27): IBSxmlrpc->__sendXmlRpcRequest(Object(xmlrpcmsg), 240) #5 /usr/local/IBSng/interface/IBSng/inc/request.php(60): IBSxmlrpc->sendRequest('login.login', Array) #6 /usr/local/IBSng/interface/IBSng/inc/auth.php(144): Request->send() #7 /usr/local/IBSng/interface/IBSng/inc/auth.php(111): Auth->__sendAuthRequest() #8 /usr/local/IBSng/interface/IBSng/inc/auth.php(94): Auth->__authenticateUser() #9 /usr/local/IBSng/ in /usr/local/IBSng/interface/xmlrpc/xmlrpc.inc on line 1307

该错误是什么意思?我该如何解决?

使用 preg_match() 而不是 ereg() 函数。