File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,6 @@ ZEND_API ZEND_COLD void zend_throw_exception_internal(zend_object *exception) /*
194194		zend_exception_set_previous (exception , EG (exception ));
195195		EG (exception ) =  exception ;
196196		if  (previous ) {
197- 			ZEND_ASSERT (is_handle_exception_set () &&  "HANDLE_EXCEPTION not set?" );
198197			return ;
199198		}
200199	}
Original file line number Diff line number Diff line change 1+ --TEST--
2+ GH-17408 (Assertion failure Zend/zend_exceptions.c)
3+ --EXTENSIONS--
4+ zend_test
5+ --FILE--
6+ <?php 
7+ function  test () {
8+     $ resourcezend_test_create_throwing_resource ();
9+     zend_test_create_throwing_resource ();
10+ }
11+ test ();
12+ ?> 
13+ --EXPECTF--
14+ Fatal error: Uncaught Exception: Throwing resource destructor called in %s:%d
15+ Stack trace:
16+ #0 %s(%d): test()
17+ #1 {main}
18+ 
19+ Next Exception: Throwing resource destructor called in %s:%d
20+ Stack trace:
21+ #0 {main}
22+   thrown in %s on line %d
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments