The site is very complex, with thousands of functions and millions of lines of code, far too much to debug line by line at this stage.
We have moved from Apache to Nginx and set the site up. It's running much faster, however some areas are not working.
Some of php's default functions are not working / not working properly. I've found one thing, which we use for adding / editing comments, that is not working.
$comment = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
'\\1<a href="https://\\2" target=_blank>\\2</a>', $comment);
This results in comment the variable to be blank and causes blank values to be inserted into the database in discussions.
Example: This just being one very small area, what I am looking to for is if HHVM can run alongside PHP/Apache encase it fails in a request so that the request operates via PHP/Apache.
Any advice on this would be greatly received.