CodeIgniter Error : Only variable references should be returned by reference

Setelah Install php terbaru versi 5.6.5  saya menjalankan aplikasi php saya ada error :

A PHP  Error Was Encountered

Severity : Notice

Message : Only variable references should be returned by reference

Filename : Core/Common.php

Line Number : 257

Padahal sebelumnya tidak ada error

Setelah browsing2 akhirnya saya ubah kodenya :

dari :

return $_config[0] =& $config;

Menjadi :

return $config;

Dan Alhamdulillah berjalan normal seperti biasa tanpa error ….

Referensi :

http://indrayn.com/codeigniter-message-only-variable-references-should-be-returned-by-reference/

2 thoughts on “CodeIgniter Error : Only variable references should be returned by reference

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s