Skip to content

Commit b725d14

Browse files
committed
Merge pull request #5 from Jille/master
Fix comment and test
2 parents 281ad6d + ef83809 commit b725d14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/weakref_008.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ unset($ref);
1111
echo "done...\n";
1212
?>
1313
--EXPECTF--
14-
set...
14+
get...
1515
unset...
1616
done...

wr_weakref.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static int wr_weakref_ref_release(wr_weakref_object *intern TSRMLS_DC) /* {{{ */
5656
if (intern->valid && (intern->acquired > 0)) {
5757
intern->acquired--;
5858
if (intern->acquired == 0) {
59-
// We need to register that ref so that the object doesn't get collected
59+
// We need to unregister that ref so that the object can get collected
6060
Z_OBJ_HANDLER_P(intern->ref, del_ref)(intern->ref TSRMLS_CC);
6161
}
6262
return SUCCESS;

0 commit comments

Comments
 (0)