1
0
Fork 0

Decompiler: fix value2constant for NULL

This commit is contained in:
Xuefer 2015-07-17 21:48:32 +08:00
parent 8207e0771c
commit 7c3f8c2f53
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ function value($value) // {{{
$value = new Decompiler_ConstArray($decompiler, $value);
}
else {
if (($constant = $decompiler->value2constant($value)) && isset($constant)) {
if (is_scalar($value) && ($constant = $decompiler->value2constant($value)) && isset($constant)) {
$value = new Decompiler_Code($decompiler, $constant);
}
else {