# Is\_file PHP error when setting-up Role access for PHP script service

**URL:** <https://community.dreamfactory.com/t/is-file-php-error-when-setting-up-role-access-for-php-script-service/3003>\
**Category:** Miscellaneous\
**Created:** [July 19, 2016, 9:05am UTC](https://community.dreamfactory.com/t/is-file-php-error-when-setting-up-role-access-for-php-script-service/3003 "2016-07-19T09:05:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vsevolod\_Gromov](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/vsevolod_gromov/32/841_2.png) [@Vsevolod\_Gromov](https://community.dreamfactory.com/u/Vsevolod_Gromov)\
**Post date:** [July 19, 2016, 9:05am UTC](https://community.dreamfactory.com/t/is-file-php-error-when-setting-up-role-access-for-php-script-service/3003/1 "2016-07-19T09:05:29Z")

</div>

I get:  
DreamFactory Utility Module  
is\_file(): File name is longer than the maximum allowed path length on this platform (1024): … Entire script servie contents follows

OS is DSP’s FreeBSD  
DF is 2.2.0  
I assume, that some code, when trying to get script endpoints for Role access to set-up, is checking if script is actually a file, stuffing entire script contents into is\_file PHP function.

The source code that, I suspect, is an origin of an error, is BaseEngineAdpter.php, method runScript, line 134.  
It may be more feasible just check for valid filename chars first.
