[CRASH] Fix segmentation fault in zend_std_write_property for PHP 5.4+

See #1000