Permalink
Browse files

zend_error_noreturn() causes problems on new gcc

Summary:
Fix build error

Test Plan:

Reviewers:

CC:
  • Loading branch information...
1 parent 6bf2a88 commit 0ff0c6d348a069ae9954c15fe35ca8d1e03e43a3 @scottmac scottmac committed Sep 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext.cpp
View
@@ -442,7 +442,7 @@ ZEND_FUNCTION(__xhp_idx) {
// (new foo)[] -- Object overload (ArrayAccess)
case IS_OBJECT:
if (!Z_OBJ_HT_P(dict)->read_dimension) {
- zend_error_noreturn(E_ERROR, "Cannot use object as array");
+ zend_error(E_ERROR, "Cannot use object as array");
RETURN_NULL();
} else {
zval* overloaded_result = Z_OBJ_HT_P(dict)->read_dimension(dict, offset, BP_VAR_R TSRMLS_CC);

0 comments on commit 0ff0c6d

Please sign in to comment.