@@ -563,7 +563,7 @@ static ssize_t php_userstreamop_write(php_stream *stream, const char *buf, size_
563563 zval args [1 ];
564564 ssize_t didwrite ;
565565
566- assert (us != NULL );
566+ ZEND_ASSERT (us != NULL );
567567
568568 ZVAL_STRINGL (& args [0 ], (char * )buf , count );
569569
@@ -613,7 +613,7 @@ static ssize_t php_userstreamop_read(php_stream *stream, char *buf, size_t count
613613 size_t didread = 0 ;
614614 php_userstream_data_t * us = (php_userstream_data_t * )stream -> abstract ;
615615
616- assert (us != NULL );
616+ ZEND_ASSERT (us != NULL );
617617
618618 uint32_t orig_no_fclose = stream -> flags & PHP_STREAM_FLAG_NO_FCLOSE ;
619619 stream -> flags |= PHP_STREAM_FLAG_NO_FCLOSE ;
@@ -694,7 +694,7 @@ static int php_userstreamop_close(php_stream *stream, int close_handle)
694694 zval retval ;
695695 php_userstream_data_t * us = (php_userstream_data_t * )stream -> abstract ;
696696
697- assert (us != NULL );
697+ ZEND_ASSERT (us != NULL );
698698
699699 zend_string * func_name = ZSTR_INIT_LITERAL (USERSTREAM_CLOSE , false);
700700 zend_call_method_if_exists (us -> object , func_name , & retval , 0 , NULL );
@@ -714,7 +714,7 @@ static int php_userstreamop_flush(php_stream *stream)
714714 zval retval ;
715715 php_userstream_data_t * us = (php_userstream_data_t * )stream -> abstract ;
716716
717- assert (us != NULL );
717+ ZEND_ASSERT (us != NULL );
718718
719719 zend_string * func_name = ZSTR_INIT_LITERAL (USERSTREAM_FLUSH , false);
720720 zend_result call_result = zend_call_method_if_exists (us -> object , func_name , & retval , 0 , NULL );
@@ -734,7 +734,7 @@ static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int when
734734 php_userstream_data_t * us = (php_userstream_data_t * )stream -> abstract ;
735735 zval args [2 ];
736736
737- assert (us != NULL );
737+ ZEND_ASSERT (us != NULL );
738738
739739 ZVAL_LONG (& args [0 ], offset );
740740 ZVAL_LONG (& args [1 ], whence );
@@ -1358,7 +1358,7 @@ static int php_userstreamop_closedir(php_stream *stream, int close_handle)
13581358 zval retval ;
13591359 php_userstream_data_t * us = (php_userstream_data_t * )stream -> abstract ;
13601360
1361- assert (us != NULL );
1361+ ZEND_ASSERT (us != NULL );
13621362
13631363 zend_string * func_name = ZSTR_INIT_LITERAL (USERSTREAM_DIR_CLOSE , false);
13641364 zend_call_method_if_exists (us -> object , func_name , & retval , 0 , NULL );
0 commit comments