Lines Matching refs:Z_STRVAL_P

191 				strval = Z_STRVAL_P(op);  in convert_scalar_to_number()
225 …if ((Z_TYPE(holder)=is_numeric_string(Z_STRVAL_P(op), Z_STRLEN_P(op), &Z_LVAL(holder), &Z_DVAL(hol…
266 Z_LVAL(holder) = strtol(Z_STRVAL_P(op), NULL, 10); \
309 || (Z_STRLEN_P(op)==1 && Z_STRVAL_P(op)[0]=='0')) { \
391 char *strval = Z_STRVAL_P(op); in convert_to_long_base()
451 char *strval = Z_STRVAL_P(op); in convert_to_double()
535 char *strval = Z_STRVAL_P(op); in convert_to_boolean()
538 || (Z_STRLEN_P(op)==1 && Z_STRVAL_P(op)[0]=='0')) { in convert_to_boolean()
582 Z_STRLEN_P(op) = zend_spprintf(&Z_STRVAL_P(op), 0, "%.*H", (int) EG(precision), dval); in _convert_to_cstring()
600 Z_STRVAL_P(op) = STR_EMPTY_ALLOC(); in _convert_to_string()
607 Z_STRVAL_P(op) = estrndup_rel("1", 1); in _convert_to_string()
610 Z_STRVAL_P(op) = STR_EMPTY_ALLOC(); in _convert_to_string()
619 Z_STRLEN_P(op) = zend_spprintf(&Z_STRVAL_P(op), 0, "Resource id #%ld", tmp); in _convert_to_string()
625 Z_STRLEN_P(op) = zend_spprintf(&Z_STRVAL_P(op), 0, "%ld", lval); in _convert_to_string()
630 Z_STRLEN_P(op) = zend_spprintf(&Z_STRVAL_P(op), 0, "%.*G", (int) EG(precision), dval); in _convert_to_string()
637 Z_STRVAL_P(op) = estrndup_rel("Array", sizeof("Array")-1); in _convert_to_string()
651 Z_STRVAL_P(op) = estrndup_rel("Object", sizeof("Object")-1); in _convert_to_string()
1090 Z_STRVAL_P(result) = estrndup(Z_STRVAL_P(op1), Z_STRLEN_P(op1)); in bitwise_not_function()
1093 Z_STRVAL_P(result)[i] = ~Z_STRVAL_P(op1)[i]; in bitwise_not_function()
1122 result_str = estrndup(Z_STRVAL_P(longer), Z_STRLEN_P(longer)); in bitwise_or_function()
1124 result_str[i] |= Z_STRVAL_P(shorter)[i]; in bitwise_or_function()
1127 STR_FREE(Z_STRVAL_P(result)); in bitwise_or_function()
1129 Z_STRVAL_P(result) = result_str; in bitwise_or_function()
1162 result_str = estrndup(Z_STRVAL_P(shorter), Z_STRLEN_P(shorter)); in bitwise_and_function()
1164 result_str[i] &= Z_STRVAL_P(longer)[i]; in bitwise_and_function()
1167 STR_FREE(Z_STRVAL_P(result)); in bitwise_and_function()
1169 Z_STRVAL_P(result) = result_str; in bitwise_and_function()
1204 result_str = estrndup(Z_STRVAL_P(shorter), Z_STRLEN_P(shorter)); in bitwise_xor_function()
1206 result_str[i] ^= Z_STRVAL_P(longer)[i]; in bitwise_xor_function()
1209 STR_FREE(Z_STRVAL_P(result)); in bitwise_xor_function()
1211 Z_STRVAL_P(result) = result_str; in bitwise_xor_function()
1261 if (IS_INTERNED(Z_STRVAL_P(op1))) { in add_char_to_string()
1263 memcpy(buf, Z_STRVAL_P(op1), Z_STRLEN_P(op1)); in add_char_to_string()
1265 buf = (char *) erealloc(Z_STRVAL_P(op1), length + 1); in add_char_to_string()
1283 if (IS_INTERNED(Z_STRVAL_P(op1))) { in add_string_to_string()
1285 memcpy(buf, Z_STRVAL_P(op1), Z_STRLEN_P(op1)); in add_string_to_string()
1287 buf = (char *) erealloc(Z_STRVAL_P(op1), length+1); in add_string_to_string()
1289 memcpy(buf + Z_STRLEN_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op2)); in add_string_to_string()
1320 …if (result==op1 && !IS_INTERNED(Z_STRVAL_P(op1))) { /* special case, perform operations on result … in concat_function()
1324 efree(Z_STRVAL_P(result)); in concat_function()
1329 Z_STRVAL_P(result) = safe_erealloc(Z_STRVAL_P(result), res_len, 1, 1); in concat_function()
1331 memcpy(Z_STRVAL_P(result)+Z_STRLEN_P(result), Z_STRVAL_P(op2), Z_STRLEN_P(op2)); in concat_function()
1332 Z_STRVAL_P(result)[res_len]=0; in concat_function()
1343 memcpy(buf, Z_STRVAL_P(op1), Z_STRLEN_P(op1)); in concat_function()
1344 memcpy(buf + Z_STRLEN_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op2)); in concat_function()
1425 ZVAL_LONG(result, strcoll(Z_STRVAL_P(op1), Z_STRVAL_P(op2))); in string_locale_compare_function()
1526 ZVAL_LONG(result, zend_binary_strcmp("", 0, Z_STRVAL_P(op2), Z_STRLEN_P(op2))); in compare_function()
1530 ZVAL_LONG(result, zend_binary_strcmp(Z_STRVAL_P(op1), Z_STRLEN_P(op1), "", 0)); in compare_function()
1675 && (!memcmp(Z_STRVAL_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op1)))); in is_identical_function()
1782 char *s=Z_STRVAL_P(str); in increment_string()
1788 STR_FREE(Z_STRVAL_P(str)); in increment_string()
1789 Z_STRVAL_P(str) = estrndup("1", sizeof("1")-1); in increment_string()
1796 memcpy(s, Z_STRVAL_P(str), Z_STRLEN_P(str) + 1); in increment_string()
1797 Z_STRVAL_P(str) = s; in increment_string()
1841 memcpy(t+1, Z_STRVAL_P(str), Z_STRLEN_P(str)); in increment_string()
1855 STR_FREE(Z_STRVAL_P(str)); in increment_string()
1856 Z_STRVAL_P(str) = t; in increment_string()
1883 switch (is_numeric_string(Z_STRVAL_P(op1), Z_STRLEN_P(op1), &lval, &dval, 0)) { in increment_function()
1885 str_efree(Z_STRVAL_P(op1)); in increment_function()
1895 str_efree(Z_STRVAL_P(op1)); in increment_function()
1931 STR_FREE(Z_STRVAL_P(op1)); in decrement_function()
1935 switch (is_numeric_string(Z_STRVAL_P(op1), Z_STRLEN_P(op1), &lval, &dval, 0)) { in decrement_function()
1937 STR_FREE(Z_STRVAL_P(op1)); in decrement_function()
1946 STR_FREE(Z_STRVAL_P(op1)); in decrement_function()
2127 return zend_binary_strcmp(Z_STRVAL_P(s1), Z_STRLEN_P(s1), Z_STRVAL_P(s2), Z_STRLEN_P(s2)); in zend_binary_zval_strcmp()
2133 …return zend_binary_strncmp(Z_STRVAL_P(s1), Z_STRLEN_P(s1), Z_STRVAL_P(s2), Z_STRLEN_P(s2), Z_LVAL_… in zend_binary_zval_strncmp()
2139 return zend_binary_strcasecmp_l(Z_STRVAL_P(s1), Z_STRLEN_P(s1), Z_STRVAL_P(s2), Z_STRLEN_P(s2)); in zend_binary_zval_strcasecmp()
2145 …return zend_binary_strncasecmp_l(Z_STRVAL_P(s1), Z_STRLEN_P(s1), Z_STRVAL_P(s2), Z_STRLEN_P(s2), Z… in zend_binary_zval_strncasecmp()
2156 if ((ret1=is_numeric_string_ex(Z_STRVAL_P(s1), Z_STRLEN_P(s1), &lval1, &dval1, 0, &oflow1)) &&
2157 (ret2=is_numeric_string_ex(Z_STRVAL_P(s2), Z_STRLEN_P(s2), &lval2, &dval2, 0, &oflow2))) {
2251 …Z_STRLEN_P(op) = zend_spprintf(&Z_STRVAL_P(op), 0, "%.*G", (int) EG(precision), (double)Z_DVAL_P(o…