Phalanger
Phalanger copied to clipboard
Mono/Linux Improvements
very nice, I'll check the code and merge with master
Agreed. try catch in production code is usually never a good thing.
Could this be cherry-picked into current master? Things like proper PHP_OS value are useful, and that particular commit (kripper@4cb8a0c) applies cleanly even if the rest do not.
Regarding catching specific exceptions, I prefer this PHP function to not throw stack traces by default.
We have been using Phalanger with Mono/Linux in production for big gov sites for over a year.
In our case, throwing unmanaged exceptions didn't sound as the best option. We prefer to just return NULL instead.
Besides, original PHP functions don't crash that way either on invalid dates.
Please cherry-pick or accept handling all exceptions by default. Remember perfection is enemy of good.