Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.3.1] Phalcon\Validation Segmentation Fault on call appendMessage #2375

Closed
chameleonbr opened this issue Apr 22, 2014 · 2 comments
Closed

Comments

@chameleonbr
Copy link

Code Example:

$validation = new \Phalcon\Validation();
$validation->appendMessage(new \Phalcon\Validation\Message('error'));
//or
$validation->appendMessage(new \Phalcon\Validation\Message('test','lala','err'));

on error.log I get:
[Tue Apr 22 16:09:39.562722 2014] [core:notice] [pid 16688] AH00052: child pid 16713 exit signal Segmentation fault (11).

@chameleonbr
Copy link
Author

Inside the Validator can run the validation appendMessage but outside it crashes. Strange thing is that apparently is the same object.

@dreamsxin
Copy link
Contributor

I check.

$validation = new \Phalcon\Validation();
// any code
$validation->validate(); // must before appendMessage
$validation->appendMessage(new \Phalcon\Validation\Message('error'));

phalcon pushed a commit that referenced this issue Apr 28, 2014
Fix #2375 Add check messages is object in Phalcon\Validation::appendMess...
@niden niden removed the Unassigned label May 5, 2014
@niden niden closed this as completed in db40376 Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants