mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use same parameter order as strcpy()
This commit is contained in:
parent
bde75d5a12
commit
402f5f7a0d
2 changed files with 4 additions and 4 deletions
|
@ -1581,7 +1581,7 @@ ZEND_API int zval_is_true(zval *op)
|
|||
return (op->value.lval ? 1 : 0);
|
||||
}
|
||||
|
||||
ZEND_API char *zend_str_tolower_copy(char *source, char *dest, unsigned int length)
|
||||
ZEND_API char *zend_str_tolower_copy(char *dest, const char *source, unsigned int length)
|
||||
{
|
||||
register unsigned char *str = (unsigned char*)source;
|
||||
register unsigned char *result = dest;
|
||||
|
|
|
@ -197,12 +197,12 @@ ZEND_API int numeric_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_
|
|||
ZEND_API int string_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
|
||||
|
||||
ZEND_API void zend_str_tolower(char *str, unsigned int length);
|
||||
ZEND_API char *zend_str_tolower_copy(char *source, char *dest, unsigned int length);
|
||||
ZEND_API char *zend_str_tolower_copy(char *dest, const char *source, unsigned int length);
|
||||
|
||||
static inline char *
|
||||
zend_str_tolower_dup(char *source, unsigned int length)
|
||||
zend_str_tolower_dup(const char *source, unsigned int length)
|
||||
{
|
||||
return zend_str_tolower_copy(source, emalloc(length+1), length);
|
||||
return zend_str_tolower_copy(emalloc(length+1), source, length);
|
||||
}
|
||||
|
||||
ZEND_API int zend_binary_zval_strcmp(zval *s1, zval *s2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue