0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-09 16:28:41 +00:00

Fix passing of null bytes from V8 to PHP (github issue #80).

This commit is contained in:
Taneli Leppa 2014-03-21 10:59:18 +02:00
parent da53c90f88
commit 3b6390b7f8

View File

@ -914,7 +914,8 @@ int v8js_to_zval(v8::Handle<v8::Value> jsValue, zval *return_value, int flags, v
{
v8::String::Utf8Value str(jsValue);
const char *cstr = ToCString(str);
RETVAL_STRING(cstr, 1);
RETVAL_STRINGL(cstr, jsValue->ToString()->Utf8Length(), 1);
// RETVAL_STRING(cstr, 1);
}
else if (jsValue->IsBoolean())
{