Skip to content

Commit

Permalink
edit for 5.3, still throwing errors in 5.3 ... 5.4 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
krakjoe committed Jan 18, 2013
1 parent b1145ac commit 72b0d74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/prepare.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ zend_class_entry* pthreads_prepared_entry(PTHREAD thread, zend_class_entry *cand
prepared->doc_comment = estrndup(
candidate->doc_comment, candidate->doc_comment_len
);
prepared->doc_comment_len = candidate->doc_comment_len;
}
#else
if (candidate->default_properties_count) {
Expand Down Expand Up @@ -263,9 +264,10 @@ zend_class_entry* pthreads_prepared_entry(PTHREAD thread, zend_class_entry *cand
memcpy(&prepared->info.user, &candidate->info.user, sizeof(candidate->info.user));
if ((candidate->info.user).doc_comment) {
(prepared->info.user).doc_comment = estrndup(
(candidate->info.user).doc_comment,
(candidate->info.user).doc_comment,
(candidate->info.user).doc_comment_len
);
(prepared->info.user).doc_comment_len = (candidate->info.user).doc_comment_len;
}
#endif
}
Expand Down Expand Up @@ -550,3 +552,4 @@ static void pthreads_prepared_resource_dtor(zend_rsrc_list_entry *entry) {

#endif


0 comments on commit 72b0d74

Please sign in to comment.