string return value casting

also fix for argument strings >8 bytes
This commit is contained in:
Robin Appelman 2019-04-05 21:10:44 +02:00
commit db1ce0dcd4
2 changed files with 61 additions and 8 deletions

View file

@ -12,6 +12,7 @@ fn zval_parsing() {
"1" => PhpVal::Long(1),
"1.1" => PhpVal::Double(1.1),
"\"test\"" => PhpVal::String("test".into()),
"\"longer_string_to_cover_some_more_bytes\"" => PhpVal::String("longer_string_to_cover_some_more_bytes".into()),
"true" => PhpVal::Bool(true),
"false" => PhpVal::Bool(false),
"null" => PhpVal::Null,