[Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
Merge branch '2.3' into 2.4

* 2.3:
  [Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098