Fix ZTS build.

This commit is contained in:
foobar 2001-08-14 07:09:20 +00:00
parent 442669055b
commit 2983993b59
2 changed files with 4 additions and 2 deletions

View File

@ -689,7 +689,8 @@ JNIEXPORT void JNICALL Java_net_php_reflect_setResultFromObject
/* wrapper the java object in a pval object */
pval *presult = (pval*)(long)result;
pval *handle;
TSRMLS_FETCH();
if (presult->type != IS_OBJECT) {
object_init_ex(presult, &java_class_entry);
presult->is_ref=1;

View File

@ -689,7 +689,8 @@ JNIEXPORT void JNICALL Java_net_php_reflect_setResultFromObject
/* wrapper the java object in a pval object */
pval *presult = (pval*)(long)result;
pval *handle;
TSRMLS_FETCH();
if (presult->type != IS_OBJECT) {
object_init_ex(presult, &java_class_entry);
presult->is_ref=1;