Welcome Guest, Not a member yet? Register   Sign In
Bug in Form_validation.php? _error_messages is being reset

In a previous post I noted that my form validation was not working in production while it is working on my local.

Upon further investigation I found that I am properly adding my error message in the set_message function of Form_validation.php. I outputted the _error_messages array and saw that my error message was added.

However later when validation fails and Form_validation.php checks to see if the error message has the rule that failed, the _error_messages array is empty. Looking through the code though I can't see how this could be possible. I only see Form_validation initialized once so I don't think it's an issue w/ a different thread handling the validation later.

Since this is only happening in my hosted environment and not in my local I wonder if this is a PHP bug.

I am running CodeIgniter 1.7.2.

My hosted environment is PHP 4.4.9 on Apache 2.2.16 on Linux.

Locally I am running PHP 5.3.0 on Apache 2.2.14 on Windows.

Any help would be most appreciated! Should I report this bug?

Messages In This Thread
Bug in Form_validation.php? _error_messages is being reset - by El Forum - 09-11-2010, 10:33 PM

Theme © iAndrew 2016 - Forum software by © MyBB