Lines Matching refs:mode_len
742 size_t filename_len, mode_len; in PHP_FUNCTION() local
750 Z_PARAM_STRING(mode, mode_len) in PHP_FUNCTION()
797 size_t command_len, mode_len; in PHP_FUNCTION() local
804 Z_PARAM_STRING(mode, mode_len) in PHP_FUNCTION()
807 posix_mode = estrndup(mode, mode_len); in PHP_FUNCTION()
810 char *z = memchr(posix_mode, 'b', mode_len); in PHP_FUNCTION()
812 memmove(z, z + 1, mode_len - (z - posix_mode)); in PHP_FUNCTION()
813 mode_len--; in PHP_FUNCTION()
819 if (mode_len > 2 || in PHP_FUNCTION()
820 (mode_len == 1 && (*posix_mode != 'r' && *posix_mode != 'w')) || in PHP_FUNCTION()
821 (mode_len == 2 && (memcmp(posix_mode, "rb", 2) && memcmp(posix_mode, "wb", 2))) in PHP_FUNCTION()