Skip to content
This repository
Browse code

zend_error_noreturn() causes problems on new gcc

Summary:
Fix build error

Test Plan:

Reviewers:

CC:
  • Loading branch information...
commit 0ff0c6d348a069ae9954c15fe35ca8d1e03e43a3 1 parent 6bf2a88
Scott MacVicar authored September 12, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  ext.cpp
2  ext.cpp
@@ -442,7 +442,7 @@ ZEND_FUNCTION(__xhp_idx) {
442 442
     // (new foo)[] -- Object overload (ArrayAccess)
443 443
     case IS_OBJECT:
444 444
       if (!Z_OBJ_HT_P(dict)->read_dimension) {
445  
-        zend_error_noreturn(E_ERROR, "Cannot use object as array");
  445
+        zend_error(E_ERROR, "Cannot use object as array");
446 446
         RETURN_NULL();
447 447
       } else {
448 448
         zval* overloaded_result = Z_OBJ_HT_P(dict)->read_dimension(dict, offset, BP_VAR_R TSRMLS_CC);

0 notes on commit 0ff0c6d

Please sign in to comment.
Something went wrong with that request. Please try again.