On the hosting gives an error

Parse error: syntax error, unexpected '.', expecting ',' or ';' in /var/www/vhosts/ikirab.office-xxi.com/beejee.ikirab.office-xxi.com/framework/core/image.php on line 12 

on the local machine, everything is fine

index.php

 //дирСктория прилоТСния define('APP_PATH', __DIR__); define('FRAMEWORK_PATH', __DIR__ . '/../framework'); /* ΠΏΠΎΠΊΠ°Π· ошибок - Π²ΠΊΠ»ΡŽΡ‡Π΅Π½ Π² Ρ€Π΅ΠΆΠΈΠΌΠ΅ development Π·Π°ΠΊΠΎΠΌΠΌΠ΅Π½Ρ‚ΠΈΡ€ΠΎΠ²Π°Ρ‚ΡŒ для Ρ€Π΅ΠΆΠΈΠΌΠ° production */ ini_set('display_errors', 1); //Π²Ρ…ΠΎΠ΄Π½ΠΎΠΉ скрипт require_once(APP_PATH . '/app.php'); app::run(); 

image.php

 <?php /** * Created by PhpStorm. * User: ikirab * Date: 10/12/16 * Time: 11:40 AM */ class image { public $path = APP_PATH . "/image/"; 

This is line 12, to which the parser scolds.

 public $path = APP_PATH . "/image/"; 

__DIR__ on hosting is

 /var/www/vhosts/ikirab.office-xxi.com/beejee.ikirab.office-xxi.com/app 

When removing /var this error does not issue, but does not include files

  • 2
    1. The PHP version on the server is most likely less than 5.6.0. As a result, concatenation is impossible in the class property. 2. Amused the comment "Delete in production" - set the error output in php.ini of the test server, and close it permanently in the battle, so as not to forget to fix ini_set - ReinRaus

0