Revert "made lsapi_main.c compatible with PHP7/phpng ."

This reverts commit 9fb816f45ad9baa46b91514e70f755eb88539e85.
Not a security-related fix.
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Revert "made lsapi_main.c compatible with PHP7/phpng ."