Permalink
Browse files

zend_read_property should fail silently. we cannot always ensure the …

…existance of the property
  • Loading branch information...
1 parent 33fe779 commit b9666e33c79cdfe6e9698b5d66a4a403801c4293 @ppadron committed Nov 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 augeas.c
View
@@ -125,7 +125,7 @@ static php_augeas * _php_augeas_read_resource(zval *object)
{
zval *zaug;
php_augeas *return_value;
- 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"), 1 TSRMLS_DC);
if (Z_TYPE_P(zaug) != IS_RESOURCE) {
return NULL;

0 comments on commit b9666e3

Please sign in to comment.