Improve php-capability for __* magic methods