File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
ext/mbstring/libmbfl/mbfl Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -692,9 +692,7 @@ mbfl_substr_count(
692
692
needle -> encoding ,
693
693
& mbfl_encoding_wchar ,
694
694
mbfl_wchar_device_output , 0 , & pc .needle );
695
- if (filter == NULL ) {
696
- return MBFL_ERROR_ENCODING ;
697
- }
695
+ ZEND_ASSERT (filter );
698
696
mbfl_convert_filter_feed_string (filter , needle -> val , needle -> len );
699
697
mbfl_convert_filter_flush (filter );
700
698
mbfl_convert_filter_delete (filter );
@@ -711,10 +709,7 @@ mbfl_substr_count(
711
709
haystack -> encoding ,
712
710
& mbfl_encoding_wchar ,
713
711
collector_strpos , 0 , & pc );
714
- if (filter == NULL ) {
715
- mbfl_wchar_device_clear (& pc .needle );
716
- return MBFL_ERROR_ENCODING ;
717
- }
712
+ ZEND_ASSERT (filter );
718
713
pc .start = 0 ;
719
714
pc .output = 0 ;
720
715
pc .needle_pos = 0 ;
You can’t perform that action at this time.
0 commit comments