/* {{{ proto Collator::__construct( string $locale ) * Collator object constructor. */ PHP_METHOD( Collator, __construct ) { zend_error_handling error_handling; zend_replace_error_handling(EH_THROW, IntlException_ce_ptr, &error_handling); return_value = ZEND_THIS; if (collator_ctor(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1) == FAILURE) { if (!EG(exception)) { zend_throw_exception(IntlException_ce_ptr, "Constructor failed", 0); } } zend_restore_error_handling(&error_handling); }
/* {{{ proto Collator Collator::__construct( string $locale ) * Collator object constructor. */ PHP_METHOD( Collator, __construct ) { zval orig_this = *getThis(); return_value = getThis(); collator_ctor(INTERNAL_FUNCTION_PARAM_PASSTHRU); if (Z_TYPE_P(return_value) == IS_OBJECT && Z_OBJ_P(return_value) == NULL) { zend_object_store_ctor_failed(Z_OBJ(orig_this)); zval_dtor(&orig_this); ZEND_CTOR_MAKE_NULL(); } }
/* {{{ proto Collator Collator::__construct( string $locale ) * Collator object constructor. */ PHP_METHOD( Collator, __construct ) { return_value = getThis(); collator_ctor(INTERNAL_FUNCTION_PARAM_PASSTHRU); }