I suggest you run the following command on the phpBB 3.1 (or 3.2) directory:AmigoJack wrote:So PHP7 disables /e, but Dion fixes this by using eval()? That's what e was standing for all along. Good luck to those environments where this function is disabled.
Code: Select all
grep -rnw phpBB -e "eval("
As for the second comment, you are more than welcome to your opinion that the code is outdated. It may even be a valid criticism -- I don't know and I honestly don't care. Do you see any errors in the code? (I'm aware that converting to entities could create an SQL error if someone used 25 or so emojis in a topic title or forum name. I thought about changing the DB schema from VARCHAR(255) to VARCHAR(512), but for some reason phpBB still supports MySQL 4.x which does not allow VARCHAR values greater than 255.)
In any case, I came up with a solution that works. Is it perfect? Of course not...so please feel free to improve on it.