Skip to content

Instantly share code, notes, and snippets.

@patrickallaert
Created March 5, 2015 07:22
Show Gist options
  • Save patrickallaert/ac24c733de072c3bb421 to your computer and use it in GitHub Desktop.
Save patrickallaert/ac24c733de072c3bb421 to your computer and use it in GitHub Desktop.
<?php
$a = [1, 2];
$fd = fopen("/etc/hosts", "r");
echo "$a, $fd";
?>
Will produce:
Notice: Array to string conversion in php shell code on line 1
Array, Resource id #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment