Skip to content

Commit c5f8ce4

Browse files
committed
Error message of test_payload now lands in STDERR instead of STDOUT, making it visible from --test-payload.
1 parent 521c049 commit c5f8ce4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/test_payload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
if(!file_exists('vendor/autoload.php'))
2323
{
24-
print('Unable to load either test.php or vendor/autoload.php' . "\n");
24+
fwrite(STDERR, 'Unable to load either test.php or vendor/autoload.php' . "\n");
2525
exit(1);
2626
}
2727

@@ -44,7 +44,7 @@
4444
case '__destruct':
4545
case '__wakeup':
4646
$payload = unserialize($payload);
47-
break;
48-
default:
47+
break;
48+
default:
4949
print('Unable to test payload via vector "' . $vector . '"' . "\n");
5050
}

0 commit comments

Comments
 (0)