/php-src/ |
H A D | .gdbinit | 616 print the length and contents of a zend string 617 usage: print_zstr <ptr> [max length]
|
H A D | CODING_STANDARDS.md | 43 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 D | UPGRADING | 148 . 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 D | 004.phpt | 19 strncmp(): Argument #3 ($length) must be greater than or equal to 0
|
H A D | 006.phpt | 22 strncasecmp(): Argument #3 ($length) must be greater than or equal to 0
|
H A D | call_user_func_array_array_slice_type.phpt | 23 array_slice(): Argument #3 ($length) must be of type ?int, array given
|
H A D | call_user_func_array_array_slice_type_strict.phpt | 28 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 D | flexible-heredoc-error5.phpt | 2 Flexible heredoc syntax error 5: mixing spaces and tabs in ending marker for 0 length body
|
H A D | flexible-heredoc-error6.phpt | 2 Flexible heredoc syntax error 6: no ending token on 0 length body
|
H A D | flexible-nowdoc-error5.phpt | 2 Flexible nowdoc syntax error 5: mixing spaces and tabs in ending marker for 0 length body
|
H A D | flexible-nowdoc-error6.phpt | 2 Flexible nowdoc syntax error 6: no ending token on 0 length body
|
/php-src/Zend/tests/named_params/ |
H A D | call_user_func.phpt | 43 var_dump(call_user_func('array_slice', [1, 2, 3, 4, 5], length: 2));
|
H A D | internal.phpt | 6 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 D | constant_propagation.phpt | 9 Bar::FOO?->length(); 16 Call to a member function length() on string
|
/php-src/Zend/tests/varSyntax/ |
H A D | constant_object_deref.phpt | 10 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 D | method_call_on_string_literal.phpt | 5 "string"->length(); 8 Fatal error: Uncaught Error: Call to a member function length() on string in %s:%d
|
/php-src/Zend/ |
H A D | zend_API.c | 1918 …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 D | zend_API.h | 554 …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 D | zend_alloc.c | 2660 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 D | zend_alloc.h | 64 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 D | zend_builtin_functions.stub.php | 26 function strncmp(string $string1, string $string2, int $length): int {} argument 32 function strncasecmp(string $string1, string $string2, int $length): int {} argument
|
H A D | zend_builtin_functions_arginfo.h | 29 ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
|
H A D | zend_globals.h | 381 const char *text, size_t length, void *context);
|
H A D | zend_hash.c | 3256 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 D | zend_hash.h | 344 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)
|