static void php_spn_common_handler(INTERNAL_FUNCTION_PARAMETERS, int behavior)
{
void *s1, *s2;
- int32_t len1, len2;
+ int len1, len2;
zend_uchar type1, type2;
long start, len; /* For UNICODE, these are codepoint units */
PHP_FUNCTION(explode)
{
void *str, *delim;
- int32_t str_len, delim_len;
+ int str_len, delim_len;
zend_uchar str_type, delim_type;
int limit = -1;
int argc = ZEND_NUM_ARGS();
PHP_FUNCTION(strtok)
{
void *tok, *str;
- int32_t tok_len, str_len;
+ int tok_len, str_len;
zend_uchar tok_type, str_type;
zval *zv;
char *token, *token_end, *p, *pe;
PHP_FUNCTION(strstr)
{
void *haystack;
- int32_t haystack_len;
+ int haystack_len;
zend_uchar haystack_type;
zval **needle;
void *found = NULL;
PHP_FUNCTION(strpos)
{
void *haystack;
- int32_t haystack_len;
+ int haystack_len;
zend_uchar haystack_type;
zval **needle;
int offset = 0;
PHP_FUNCTION(substr)
{
void *str;
- int32_t str_len, cp_len;
+ int str_len;
+ int32_t cp_len;
zend_uchar str_type;
int l = -1;
int f;
PHP_FUNCTION(strip_tags)
{
void *str, *allow = NULL;
- int32_t str_len, allow_len = 0;
+ int str_len, allow_len = 0;
zend_uchar str_type, allow_type;
void *buf;
int32_t retval_len;
PHP_FUNCTION(str_repeat)
{
void *input_str; /* Input string */
- int32_t input_str_len;
+ int input_str_len;
int32_t input_str_chars;
zend_uchar input_str_type;
long mult; /* Multiplier */
PHP_FUNCTION(substr_count)
{
void *haystack, *needle;
- int32_t haystack_len, needle_len;
+ int haystack_len, needle_len;
zend_uchar haystack_type, needle_type;
long offset = 0, length = 0;
int ac = ZEND_NUM_ARGS();
int32_t pad_length; /* Length to pad to, in codepoints for Unicode */
void *padstr; /* Padding string */
int32_t pad_type; /* Padding type (left/right/both) */
- int32_t input_len, padstr_len; /* Lengths in code units for Unicode */
+ int input_len, padstr_len; /* Lengths in code units for Unicode */
zend_uchar input_type, padstr_type;
/* Helper variables */
PHP_FUNCTION(strpbrk)
{
void *haystack, *char_list;
- int32_t haystack_len, char_list_len;
+ int haystack_len, char_list_len;
zend_uchar haystack_type, char_list_type;
void *p = NULL;