remove check for PHP bug #50731
merged branch xabbuh/issue8007-master (PR #8052)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #8052).

Discussion
----------

remove check for PHP bug #50731

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8007
| License       | MIT
| Doc PR        |

Commits
-------

28534a6 remove check for PHP bug #50731