문제

I try to add the Slim PHP framework to a repository but it gives me errors in all the .php files :

For example, for index.php :

Commit
......\trunk\web\Slim\index.php
......\trunk\web\Slim\index.php
Commit failed (details follow):
Commit blocked by pre-commit hook (exit code 1) with output:

***********************************
PHP error in: trunk/web/Slim/index.php:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
 trunk/web/Slim/index.php on line 12 Warning: Unexpected character in input:
 '\' (ASCII=92) state=1 in trunk/web/Slim/index.php on line 12 Parse error:
 syntax error, unexpected T_STRING in trunk/web/Slim/index.php on line 12
 Errors parsing trunk/web/Slim/index.php
***********************************
This error was generated by a custom hook script on the Subversion server.
Please contact your server administrator for help with resolving this issue.
  • The server of the repository use PHP 5.3.3
  • I am using TortoiseSVN
  • index.php on line 12 : \Slim\Slim::registerAutoloader();
도움이 되었습니까?

해결책

I contacted the server admin, he disabled some hook scripts on the server, now everything works fine!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top