Welcome Guest, Not a member yet? Register   Sign In
Error when i want to include class
#1

How i can resolve this problem? Whe i want to include class i see that error. Version CI 3, php 5.6


PHP Code:
[color=rgba(0000.870588)][size=small][font=robotocalibri]Severity8192[/font][/size][/color]
[
color=rgba(0000.870588)][size=small][font=robotocalibri]MessageAssigning the return value of new by reference is deprecated[/font][/size][/color]
[
color=rgba(0000.870588)][size=small][font=robotocalibri]Filenamepear/Auth.php[/font][/size][/color
PHP Code:
[php][color=rgba(0000.870588)][size=small][font=robotocalibri]Line Number469[/font][/size][/color

class Auth extends MY_Controller{

public function __construct(){
parent::__construct();
}
}

require_once 'Auth.php';

class Settings extends MY_Controller{

public function __construct(){
parent::__construct();
$this->load->model('my_model');
}
}
[/php]
Reply
#2

(12-20-2015, 02:43 PM)apollon Wrote: How i can resolve this problem? Whe i want to include class i see that error. Version CI 3, php 5.6


PHP Code:
[color=rgba(0000.870588)][size=small][font=robotocalibri]Severity8192[/font][/size][/color]
[
color=rgba(0000.870588)][size=small][font=robotocalibri]MessageAssigning the return value of new by reference is deprecated[/font][/size][/color]
[
color=rgba(0000.870588)][size=small][font=robotocalibri]Filenamepear/Auth.php[/font][/size][/color
PHP Code:
[php][color=rgba(0000.870588)][size=small][font=robotocalibri]Line Number469[/font][/size][/color

class Auth extends MY_Controller{

public function __construct(){
parent::__construct();
}
}

require_once 'Auth.php';

class Settings extends MY_Controller{

public function __construct(){
parent::__construct();
$this->load->model('my_model');
}
}
[/php]

It looks like on line 469 of Auth.php is a "&" that is incompatible with php 5.6
Reply




Theme © iAndrew 2016 - Forum software by © MyBB