Browse files

exceptions should not be thrown from non-userland functions

  • Loading branch information...
1 parent 3856bc4 commit 33fe7796b55335d779b6c5e855392b3f44b12021 @ppadron committed Nov 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 augeas.c
View
2 augeas.c
@@ -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);
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);

0 comments on commit 33fe779

Please sign in to comment.