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

[BUG] Crash while rendering element's label #1210

Closed
beermeat opened this issue Sep 8, 2013 · 1 comment
Closed

[BUG] Crash while rendering element's label #1210

beermeat opened this issue Sep 8, 2013 · 1 comment

Comments

@beermeat
Copy link

beermeat commented Sep 8, 2013

Today I made the update from 1.3.0 branch, then this code:

$e = new \Phalcon\Forms\Element\Text('test');
$e->setLabel('Test');
echo $e->label();

began to crash the application (502 Bad Gateway)

if pass any parameter to the method, all works fine again:

$e = new \Phalcon\Forms\Element\Text('test');
$e->setLabel('Test');
echo $e->label(array()); // <label for="test">Test</label>

I think error in this commit - c8327f6

PHP 5.4.14

@phalcon
Copy link
Collaborator

phalcon commented Sep 9, 2013

This is fixed in 1.3.0

@phalcon phalcon closed this as completed Sep 9, 2013
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

1 participant