@@ -923,6 +923,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_str_contains, 0, 2, _IS_BOOL, 0)
923923 ZEND_ARG_TYPE_INFO (0 , needle , IS_STRING , 0 )
924924ZEND_END_ARG_INFO ()
925925
926+ #define arginfo_str_starts_with arginfo_str_contains
927+
928+ #define arginfo_str_ends_with arginfo_str_contains
929+
926930ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_chunk_split , 0 , 1 , IS_STRING , 0 )
927931 ZEND_ARG_TYPE_INFO (0 , str , IS_STRING , 0 )
928932 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (0 , chunklen , IS_LONG , 0 , "76" )
@@ -2496,6 +2500,8 @@ ZEND_FUNCTION(strrpos);
24962500ZEND_FUNCTION (strripos );
24972501ZEND_FUNCTION (strrchr );
24982502ZEND_FUNCTION (str_contains );
2503+ ZEND_FUNCTION (str_starts_with );
2504+ ZEND_FUNCTION (str_ends_with );
24992505ZEND_FUNCTION (chunk_split );
25002506ZEND_FUNCTION (substr );
25012507ZEND_FUNCTION (substr_replace );
@@ -3129,6 +3135,8 @@ static const zend_function_entry ext_functions[] = {
31293135 ZEND_FE (strripos , arginfo_strripos )
31303136 ZEND_FE (strrchr , arginfo_strrchr )
31313137 ZEND_FE (str_contains , arginfo_str_contains )
3138+ ZEND_FE (str_starts_with , arginfo_str_starts_with )
3139+ ZEND_FE (str_ends_with , arginfo_str_ends_with )
31323140 ZEND_FE (chunk_split , arginfo_chunk_split )
31333141 ZEND_FE (substr , arginfo_substr )
31343142 ZEND_FE (substr_replace , arginfo_substr_replace )
0 commit comments