Path length problem?

Hello,

we recently came across an unexpected problem regarding path length. When trying to copy a deep tree from wIndows file service to nextcloud it seems that the maximum wIndows path length of 32767 cannot be transferred into the cloud (linux-based). Research showed that by using the correct functions from glibc one can avoid the length problem. We do not know though if this may in fact be a php problem. Is there any hardcoded maximum path length regarding nextcloud source code?

Regards
Stephan