mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-23 00:51:51 +00:00
Fix passing of null bytes from V8 to PHP (github issue #80).
This commit is contained in:
parent
da53c90f88
commit
3b6390b7f8
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user