Skip to content

Commit 2b4c47e

Browse files
committed
Tagging the 0.1.0 release
1 parent 1f8d286 commit 2b4c47e

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

package.xml

+3-11
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
2121
<api>0.1.0</api>
2222
</version>
2323
<stability>
24-
<release>alpha</release>
25-
<api>alpha</api>
24+
<release>beta</release>
25+
<api>beta</api>
2626
</stability>
2727
<license uri="http://www.php.net/license">PHP</license>
2828
<notes>
@@ -53,20 +53,12 @@ http://pear.php.net/dtd/package-2.0.xsd">
5353
<extsrcrelease/>
5454
<changelog>
5555
<release>
56-
<stability><release>alpha</release><api>alpha</api></stability>
56+
<stability><release>beta</release><api>beta</api></stability>
5757
<version><release>0.1.0</release><api>0.1.0</api></version>
5858
<date>2011-08-18</date>
5959
<notes>
6060
- First release.
6161
</notes>
6262
</release>
63-
<release>
64-
<stability><release>alpha</release><api>alpha</api></stability>
65-
<version><release>0.0.1</release><api>0.0.1</api></version>
66-
<date>2011-08-18</date>
67-
<notes>
68-
- First bogus release.
69-
</notes>
70-
</release>
7163
</changelog>
7264
</package>

weakref.c

+11-7
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,21 @@ static void weakref_store_attach(weakref_object *intern, zval *ref TSRMLS_DC) /*
106106
data = &store->objs[ref_handle];
107107

108108
if (EG(objects_store).object_buckets[ref_handle].bucket.obj.dtor == weakref_store_dtor) {
109-
weakref_ref_list *list_entry = data->wrefs_head;
110-
weakref_ref_list *next = emalloc(sizeof(weakref_ref_list));
111-
109+
weakref_ref_list *next = emalloc(sizeof(weakref_ref_list));
112110
next->wref = intern;
113111
next->next = NULL;
114112

115-
while (list_entry->next != NULL) {
116-
list_entry = list_entry->next;
117-
}
113+
if (data->wrefs_head) {
114+
weakref_ref_list *list_entry = data->wrefs_head;
115+
116+
while (list_entry->next != NULL) {
117+
list_entry = list_entry->next;
118+
}
118119

119-
list_entry->next = next;
120+
list_entry->next = next;
121+
} else {
122+
data->wrefs_head = next;
123+
}
120124
} else {
121125
data->orig_dtor = EG(objects_store).object_buckets[ref_handle].bucket.obj.dtor;
122126
EG(objects_store).object_buckets[ref_handle].bucket.obj.dtor = weakref_store_dtor;

0 commit comments

Comments
 (0)