Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

[#7504] Extract Priority in prependValidator fails on HHVM #11

Merged
merged 2 commits into from
Jun 23, 2015
Merged

[#7504] Extract Priority in prependValidator fails on HHVM #11

merged 2 commits into from
Jun 23, 2015

Conversation

rms230
Copy link
Contributor

@rms230 rms230 commented Jun 18, 2015

zendframework/zendframework#7504

Pull request for issue: Extract Priority in prependValidator fails on HHVM [#7504]

zendframework/zendframework#7504

Pull request for issue: Extract Priority in prependValidator fails on HHVM [#7504]
@gianarb
Copy link
Contributor

gianarb commented Jun 18, 2015

Hi! Thanks for this PR!
Can you try to add a unit test with this implementation?

Thanks

@rms230
Copy link
Contributor Author

rms230 commented Jun 18, 2015

Sure, I'm a little busy at the moment, but will try have them done by tomorrow.

}

$this->validators->insert(
[
array(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this change

@Maks3w
Copy link
Member

Maks3w commented Jun 18, 2015

There is no need for tests. 3 errors has been fixed in HHVM build

master: https://travis-ci.org/zendframework/zend-validator/jobs/65683368#L317
Tests: 1576, Assertions: 3180, Errors: 6, Failures: 3, Incomplete: 5.

PR: Tests: 1576, Assertions: 3186, Errors: 3, Failures: 3, Incomplete: 5.

@Maks3w Maks3w added this to the 2.5.2 milestone Jun 18, 2015
$queue->setExtractFlags(PriorityQueue::EXTR_PRIORITY);
$extractedNode = $queue->extract();
$priority = $extractedNode[0] + 1;
$extractedNodes = $this->validators->toArray(\Zend\Stdlib\PriorityQueue::EXTR_PRIORITY);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace \Zend\Stdlib\PriorityQueue with PriorityQueue

@weierophinney weierophinney merged commit 2edfc97 into zendframework:master Jun 23, 2015
weierophinney added a commit that referenced this pull request Jun 23, 2015
[#7504] Extract Priority in prependValidator fails on HHVM
weierophinney added a commit that referenced this pull request Jun 23, 2015
weierophinney added a commit that referenced this pull request Jun 23, 2015
weierophinney added a commit that referenced this pull request Jun 23, 2015
@rms230 rms230 deleted the rms230-patch-1-1 branch July 9, 2015 17:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants