Fix zend_get_constant() usage

`zend_get_constant()` returns 1 or 0, not SUCCESS or FAILURE