fix zend_constant flags handling