CodeIgniter Forums
Session class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Session class (/showthread.php?tid=53601)



Session class - El Forum - 07-31-2012

[eluser]Craig Ward[/eluser]
In the Session class there is an '_unserialize' function which has the following line:

$data = @unserialize(strip_slashes($data));

I recently made an error in calling a helper file 'string_helper' which is obviously a system helper filename. I know this was my fault but it made my local development machine throw a 500 error but with no details about what was happening. It turns out that by using the same filename 'string_helper' the Session Class couldn't find the 'strip_slashes' function.

I know this was completely my fault but it was hard to track down with no error information. How come there was no error information, even in Development mode?


Session class - El Forum - 07-31-2012

[eluser]johnpeace[/eluser]
Did you check the logs for errors?


Session class - El Forum - 07-31-2012

[eluser]Craig Ward[/eluser]
I checked the Apache error log and nothing was thrown, codeigniter logs were not written.