Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 678) sorted by path

12345678910>>...28

/php-src/
H A D.gdbinit616 print the length and contents of a zend string
617 usage: print_zstr <ptr> [max length]
H A DCODING_STANDARDS.md43 holds the length property of each string, and that it shouldn't be
45 they'll take advantage of the length property, both for efficiency and in
47 their new lengths while doing so, should return that new length, so it
269 1. The length of constant string literals should be calculated via ``strlen()``
H A DUPGRADING148 . strcspn() with empty $characters now returns the length of the string instead
221 variable-length lookbehind assertions are now supported.
/php-src/Zend/tests/
H A D004.phpt19 strncmp(): Argument #3 ($length) must be greater than or equal to 0
H A D006.phpt22 strncasecmp(): Argument #3 ($length) must be greater than or equal to 0
H A Dcall_user_func_array_array_slice_type.phpt23 array_slice(): Argument #3 ($length) must be of type ?int, array given
H A Dcall_user_func_array_array_slice_type_strict.phpt28 array_slice(): Argument #3 ($length) must be of type ?int, array given
29 array_slice(): Argument #3 ($length) must be of type ?int, float given
H A Dflexible-heredoc-error5.phpt2 Flexible heredoc syntax error 5: mixing spaces and tabs in ending marker for 0 length body
H A Dflexible-heredoc-error6.phpt2 Flexible heredoc syntax error 6: no ending token on 0 length body
H A Dflexible-nowdoc-error5.phpt2 Flexible nowdoc syntax error 5: mixing spaces and tabs in ending marker for 0 length body
H A Dflexible-nowdoc-error6.phpt2 Flexible nowdoc syntax error 6: no ending token on 0 length body
/php-src/Zend/tests/named_params/
H A Dcall_user_func.phpt43 var_dump(call_user_func('array_slice', [1, 2, 3, 4, 5], length: 2));
H A Dinternal.phpt6 var_dump(array_slice(array: [1, 2, 3, 4, 5], offset: 2, length: 2));
7 var_dump(array_slice(length: 2, offset: 2, array: [1, 2, 3, 4, 5]));
/php-src/Zend/tests/nullsafe_operator/
H A Dconstant_propagation.phpt9 Bar::FOO?->length();
16 Call to a member function length() on string
/php-src/Zend/tests/varSyntax/
H A Dconstant_object_deref.phpt10 FOO->length();
16 Bar::FOO->length();
23 Call to a member function length() on string
24 Call to a member function length() on string
H A Dmethod_call_on_string_literal.phpt5 "string"->length();
8 Fatal error: Uncaught Error: Call to a member function length() on string in %s:%d
/php-src/Zend/
H A Dzend_API.c1918 …oc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length) /* {{{ */ in add_assoc_stringl_ex() argument
1922 ZVAL_STRINGL(&tmp, str, length); in add_assoc_stringl_ex()
2023 ZEND_API void add_index_stringl(zval *arg, zend_ulong index, const char *str, size_t length) /* {{{… in add_index_stringl() argument
2027 ZVAL_STRINGL(&tmp, str, length); in add_index_stringl()
2122 ZEND_API zend_result add_next_index_stringl(zval *arg, const char *str, size_t length) /* {{{ */ in add_next_index_stringl() argument
2126 ZVAL_STRINGL(&tmp, str, length); in add_next_index_stringl()
2265 …ty_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length) /* {{{ */ in add_property_stringl_ex() argument
2269 ZVAL_STRINGL(&tmp, str, length); in add_property_stringl_ex()
H A Dzend_API.h554 …d add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length);
581 …_always_inline void add_assoc_stringl(zval *arg, const char *key, const char *str, size_t length) { in add_assoc_stringl() argument
582 add_assoc_stringl_ex(arg, key, strlen(key), str, length); in add_assoc_stringl()
604 ZEND_API void add_index_stringl(zval *arg, zend_ulong index, const char *str, size_t length);
621 ZEND_API zend_result add_next_index_stringl(zval *arg, const char *str, size_t length);
640 …d_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length);
667 …ways_inline void add_property_stringl(zval *arg, const char *key, const char *str, size_t length) { in add_property_stringl() argument
668 add_property_stringl_ex(arg, key, strlen(key), str, length); in add_property_stringl()
H A Dzend_alloc.c2660 size_t length; local
2663 length = strlen(s);
2664 if (UNEXPECTED(length + 1 == 0)) {
2668 memcpy(p, s, length+1);
2676 if (UNEXPECTED(length + 1 == 0)) {
2680 memcpy(p, s, length);
2681 p[length] = 0;
2694 p = (char *) malloc(length + 1);
2698 if (EXPECTED(length)) {
2699 memcpy(p, s, length);
[all …]
H A Dzend_alloc.h64 ZEND_API ZEND_ATTRIBUTE_MALLOC char* ZEND_FASTCALL zend_strndup(const char *s, size_t length);
76 ZEND_API ZEND_ATTRIBUTE_MALLOC char* ZEND_FASTCALL _estrndup(const char *s, size_t length ZEND_FIL…
164 #define estrndup(s, length) _estrndup((s), (length) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) argument
178 #define estrndup_rel(s, length) _estrndup((s), (length) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_… argument
206 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(len… argument
H A Dzend_builtin_functions.stub.php26 function strncmp(string $string1, string $string2, int $length): int {} argument
32 function strncasecmp(string $string1, string $string2, int $length): int {} argument
H A Dzend_builtin_functions_arginfo.h29 ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
H A Dzend_globals.h381 const char *text, size_t length, void *context);
H A Dzend_hash.c3256 ZEND_API bool ZEND_FASTCALL _zend_handle_numeric_str_ex(const char *key, size_t length, zend_ulong … in _zend_handle_numeric_str_ex() argument
3260 const char *end = key + length; in _zend_handle_numeric_str_ex()
3266 if ((*tmp == '0' && length > 1) /* numbers with leading zeros */ in _zend_handle_numeric_str_ex()
H A Dzend_hash.h344 ZEND_API bool ZEND_FASTCALL _zend_handle_numeric_str_ex(const char *key, size_t length, zend_ulong …
390 static zend_always_inline bool _zend_handle_numeric_str(const char *key, size_t length, zend_ulong … in END_EXTERN_C()
405 return _zend_handle_numeric_str_ex(key, length, idx); in END_EXTERN_C()
408 #define ZEND_HANDLE_NUMERIC_STR(key, length, idx) \ argument
409 _zend_handle_numeric_str(key, length, &idx)

Completed in 137 milliseconds

12345678910>>...28