mirror of
https://github.com/php/php-src.git
synced 2024-12-02 06:13:40 +08:00
Fix regression in passing strings as parameters
This commit is contained in:
parent
d69d04cf75
commit
668af98d75
@ -287,7 +287,7 @@ static jobject _java_makeObject(pval* arg JG_DC) {
|
||||
switch (arg->type) {
|
||||
case IS_STRING:
|
||||
result=(*jenv)->NewByteArray(jenv,arg->value.str.len);
|
||||
(*jenv)->SetByteArrayRegion(jenv,(jbyteArray)arg,0,
|
||||
(*jenv)->SetByteArrayRegion(jenv,(jbyteArray)result,0,
|
||||
arg->value.str.len, arg->value.str.val);
|
||||
break;
|
||||
|
||||
|
@ -287,7 +287,7 @@ static jobject _java_makeObject(pval* arg JG_DC) {
|
||||
switch (arg->type) {
|
||||
case IS_STRING:
|
||||
result=(*jenv)->NewByteArray(jenv,arg->value.str.len);
|
||||
(*jenv)->SetByteArrayRegion(jenv,(jbyteArray)arg,0,
|
||||
(*jenv)->SetByteArrayRegion(jenv,(jbyteArray)result,0,
|
||||
arg->value.str.len, arg->value.str.val);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user