8000 Update SplPriorityQueue.php · zendframework/zend-stdlib@18759fb · GitHub
[go: up one dir, main page]

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

Commit 18759fb

Browse files
author
Saif Eddin Gmati
authored
Update SplPriorityQueue.php
1 parent 7c7663c commit 18759fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SplPriorityQueue.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ public function serialize()
8484
*/
8585
public function unserialize($data)
8686
{
87+
$this->serial = PHP_INT_MAX;
8788
foreach (unserialize($data) as $item) {
89+
$this->serial--;
8890
$this->insert($item['data'], $item['priority']);
8991
}
9092
}

0 commit comments

Comments
 (0)
0