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

isset/empty return wrong value on inherited config class and fluent interface #1362

Closed
viktoras25 opened this issue Oct 10, 2013 · 4 comments

Comments

@viktoras25
Copy link
Contributor

Issue is most likely related to #1315.

class C extends Phalcon\Config {}

$c1 = new Phalcon\Config(array("a" => array("b" => 1)));
$c2 = new              C(array("a" => array("b" => 1)));

die(var_dump( isset($c1->a->b), isset($c2->a->b) ));
// Returns: 
// bool(true)
// bool(false)
@dreamsxin
Copy link
Contributor

Which version you are in?
I test in 1.3.0 is ok.

@viktoras25
Copy link
Contributor Author

1.3.0 built from ext

@ghost ghost mentioned this issue Oct 11, 2013
phalcon pushed a commit that referenced this issue Oct 14, 2013
@ghost
Copy link

ghost commented Oct 14, 2013

Please try now.

@viktoras25
Copy link
Contributor Author

It works, thanks.

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

2 participants