I tried the exact same thing:
class someClass{ public $var = APP . DIRECTORY_SEPARATOR . "someFolder"; }
This, however, worked on my local machine, but not on the server. After a curse of more than an hour and without finding a hint, I remembered that a newer version of XAMPP was installed on my local machine, and therefore a different version of PHP. It seemed like this was not possible in PHP version 5.5.11, but in version 5.6.8 you can combine strings.
I just installed the new version of XAMPP on the test server to make sure that this is true.
source share