Rename link to nlink in stat to mirror stat()

This commit is contained in:
Bob Weinand 2018-11-12 10:47:44 +01:00
parent 72aa710358
commit a983eb17b6

View File

@ -1137,7 +1137,7 @@ static zval php_uv_make_stat(const uv_stat_t *s)
add_assoc_long_ex(&tmp, ZEND_STRL("dev"), s->st_dev);
add_assoc_long_ex(&tmp, ZEND_STRL("ino"), s->st_ino);
add_assoc_long_ex(&tmp, ZEND_STRL("mode"), s->st_mode);
add_assoc_long_ex(&tmp, ZEND_STRL("link"), s->st_nlink);
add_assoc_long_ex(&tmp, ZEND_STRL("nlink"), s->st_nlink);
add_assoc_long_ex(&tmp, ZEND_STRL("uid"), s->st_uid);
add_assoc_long_ex(&tmp, ZEND_STRL("gid"), s->st_gid);
add_assoc_long_ex(&tmp, ZEND_STRL("rdev"), s->st_rdev);