Skip to content

Commit

Permalink
exceptions should not be thrown from non-userland functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Padron committed Nov 18, 2009
1 parent 3856bc4 commit 33fe779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion augeas.c
Expand Up @@ -128,7 +128,7 @@ static php_augeas * _php_augeas_read_resource(zval *object)
zaug = zend_read_property(Z_OBJCE_P(object), object, "handle", strlen("handle"), 0 TSRMLS_DC); zaug = zend_read_property(Z_OBJCE_P(object), object, "handle", strlen("handle"), 0 TSRMLS_DC);


if (Z_TYPE_P(zaug) != IS_RESOURCE) { if (Z_TYPE_P(zaug) != IS_RESOURCE) {
zend_throw_exception(augeas_ce_AugeasException, "could not read augeas resource"); return NULL;
} }


return_value = (php_augeas *) zend_fetch_resource(&zaug TSRMLS_CC, -1, PHP_AUGEAS_RESOURCE_NAME, NULL, 1, le_augeas); return_value = (php_augeas *) zend_fetch_resource(&zaug TSRMLS_CC, -1, PHP_AUGEAS_RESOURCE_NAME, NULL, 1, le_augeas);
Expand Down

0 comments on commit 33fe779

Please sign in to comment.